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
- 167 LFX Mentorship
- 219 LFX Mentorship: Linux Kernel
- 801 Linux Foundation IT Professional Programs
- 357 Cloud Engineer IT Professional Program
- 181 Advanced Cloud Engineer IT Professional Program
- 83 DevOps Engineer IT Professional Program
- 149 Cloud Native Developer IT Professional Program
- 112 Express Training Courses
- 138 Express Courses - Discussion Forum
- 6.2K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 17 LFC131 Class Forum
- 35 LFD102 Class Forum
- 227 LFD103 Class Forum
- 19 LFD110 Class Forum
- 39 LFD121 Class Forum
- 15 LFD133 Class Forum
- 7 LFD134 Class Forum
- 17 LFD137 Class Forum
- 63 LFD201 Class Forum
- 3 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 2 LFD237 Class Forum
- 23 LFD254 Class Forum
- 697 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 154 LFS101 Class Forum
- 1 LFS111 Class Forum
- 1 LFS112 Class Forum
- 1 LFS116 Class Forum
- 1 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 7 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 1 LFS157 Class Forum
- 34 LFS158 Class Forum
- 8 LFS162 Class Forum
- 1 LFS166 Class Forum
- 1 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 1 LFS178 Class Forum
- 1 LFS180 Class Forum
- 1 LFS182 Class Forum
- 1 LFS183 Class Forum
- 29 LFS200 Class Forum
- 736 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 14 LFS203 Class Forum
- 102 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 48 LFS241 Class Forum
- 48 LFS242 Class Forum
- 37 LFS243 Class Forum
- 15 LFS244 Class Forum
- LFS245 Class Forum
- LFS246 Class Forum
- 50 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 155 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 5 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 121 LFS260 Class Forum
- 159 LFS261 Class Forum
- 41 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 20 LFS267 Class Forum
- 25 LFS268 Class Forum
- 31 LFS269 Class Forum
- 1 LFS270 Class Forum
- 199 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 10 LFW111 Class Forum
- 261 LFW211 Class Forum
- 182 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 782 Hardware
- 198 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 83 Storage
- 758 Linux Distributions
- 80 Debian
- 67 Fedora
- 15 Linux Mint
- 13 Mageia
- 23 openSUSE
- 143 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 348 Ubuntu
- 461 Linux System Administration
- 39 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 90 Linux Security
- 77 Network Management
- 101 System Management
- 46 Web Management
- 64 Mobile Computing
- 17 Android
- 34 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 19 Study Material
- 806 Programming and Development
- 304 Kernel Development
- 204 Software Development
- 1.8K Software
- 211 Applications
- 180 Command Line
- 3 Compiling/Installing
- 405 Games
- 309 Installation
- 97 All In Program
- 97 All In 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)