Welcome to the Linux Foundation Forum!
frustrated in understanding the linux kernel
fishchip2
Posts: 19
Hi,
Recently, I feel frustrated in understanding the linux kernel.
I have difficulty to inter-relae differnent data structure. For example, the relationship between superblock, inode and dentry objects.
0
Comments
-
This is a good place to start, they maintain the kernel. They support Linus Torvalds so that he can work on it full time.
http://www.linuxfoundation.org
The site is huge and the best way to find what you are looking for is to use the search function. Example inodes.0 -
These are all file system related structures. Narrow you search on the web to linux file system documents. Also, you can find useful stuff on:
www.kernel.org
www.tldp.org0 -
Thank you.
There are also some ebooks on linux kernel at :
http://www.kernelchina.org/?q=node/69
OReilly.Understanding.Linux.Network.Internals.Dec.2005.chm
The Design and Implementation of the FreeBSD Operating System.chm
The.Design.and.Implementation.of.the.4.4BSD.Operating.System.chm
The_Linux_Networking_Architecture.chm
Addison-Wesley Tcpip Illustrated, Volume 1 The Protocols.chm
Addison.Wesley.TCP-IP.Illustrated.Volume.2.The.Inplementation
Linux Kernel Development Second Edition.chm
Linux.Kernel.3rd.Edition.Nov.2005.HAPPY.NEW.YEAR.chm
OReilly.Linux.Device.Drivers.3rd.Edition.Feb.2005.eBook-DDU.chm
0 -
Actually, one of the best books I have come across dealing with the Linux kernel is Robert Love's "Linux Kernel Development" which I do not know if it is the same Linux Kernel Development in your listing. Love presents the material in a very organized manner to which it becomes easier to follow.0
-
I'm in the middle of reading Professional Linux Kernel Architecture by Wolfgang Mauerer. I have to admit it's a little daunting, but so far so good. It's pretty mucha step by step analysis of the actual kernel source and an explanation of what the code is doing and why. It's big, it's think, it's very technical, and probably not the best for satiating casual curiosity. But that said, I am getting a much better understanding of how things work, now, and feel more comfortable looking at the kernel source.
http://www.wrox.com/WileyCDA/WroxTitle/Professional-Linux-Kernel-Architecture.productCd-0470343435.html
I also have not ready any other books at all about the kernel specifically, so I have no point of comparison.0 -
With over 10 Million Lines of Code and additions plus changes everyday, it would be a little tough for any one person to really grasp it. Even Microsoft contributed 20,000 lines of code to the kernel after they got caught hijacking the Hyper-V network drivers. There is a map here: http://en.wikipedia.org/wiki/File:Linux_kernel_map.png0
-
"Robert Love's "Linux Kernel Development"
yes. its a good one0 -
Some part understanding kernel or a code walk of kernel is also possible with any good professional IDE application.
So if you think using a open-source IDE, you can try using Bluefish, I use it to develop my open-source kernel project. Before that, I used to manage via Vi or via Gedit applications, but now the best IDE, is paying off really well both interms of understand (code walk), and even kernel software development.0 -
And regarding suggested books, certainly you can read kernel specific books, but beyond that kindly read the intro sections of Linux Device Drivers (LDD) Book. It is too useful for you to understand simple kernel APIs, code, modules specific to each subsystem i.e networking, filesystem, memory, etc.0
-
I noticed that some of the posts in this thread were blanked. I don't know if the OP blanked them, or if the forum software caused the problem. If it was our forum's software fault, I apologize if any useful information was lost. There is still a great bit of useful info in the thread, so, I'll just leave the remaining posts here, they contain great links to good information.0
-
http://www.youtube.com/watch?v=n9QgKo5ogg4
I made this video on using Bluefish IDE to understand my TrafficSqueezer code. Actually it is a part of Linux Kernel.
It is for my students to understand Linux Kernel code + my code/modules in it.
Hence you can use such IDE or Netbeans IDE, or any such IDE to go through the Kernel sources.
Sometimes please note each folder you see in Kernel can be a
module or sub-modules,
subsystems - such as filesystem, networking, etc,
device drivers, and so on.
Hence use a good IDE, and preferrably O'Relly series books also mainly LDD book.
I hope my video helps you too.0 -
Thanks kiran, should be an interesting watch. I'll try to post after I watch it.0
Categories
- All Categories
- 175 LFX Mentorship
- 175 LFX Mentorship: Linux Kernel
- 745 Linux Foundation IT Professional Programs
- 372 Cloud Engineer IT Professional Program
- 168 Advanced Cloud Engineer IT Professional Program
- 73 DevOps IT Professional Program - Discontinued
- 3 DevOps & GitOps IT Professional Program
- 98 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- AI & ML Training
- Blockchain & Decentralized Identity Training
- Cloud & Containers Training
- Cybersecurity Training
- DevOps & Site-Reliability Training
- Linux Kernel Development Training
- Networking Training
- Open Source Best Practice Training
- System Administration Training
- System Engineering Training
- Web & Application Development Training
- 2 LFD103-JP クラス フォーラム
- 4 LFD210-CN Class Forum
- 764 LFD259 Class Forum
- 681 LFS101 Class Forum
- 2 LFS158-JP クラス フォーラム
- 162 LFS207 Class Forum
- 3 LFS207-DE-Klassenforum
- 4 LFS207-JP クラス フォーラム
- 61 LFS241 Class Forum
- 52 LFS242 Class Forum
- 42 LFS243 Class Forum
- 19 LFS244 Class Forum
- 4 LFS250-JP クラス フォーラム
- 166 LFS253 Class Forum
- 19 LFS256 Class Forum
- 1.4K LFS258 Class Forum
- 165 LFS261 Class Forum
- 26 LFS267 Class Forum
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 945 Programming and Development
- 310 Kernel Development
- 617 Software Development
- 977 Software
- 369 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)