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
- 9.9K All Categories
- 29 LFX Mentorship
- 82 LFX Mentorship: Linux Kernel
- 465 Linux Foundation Boot Camps
- 266 Cloud Engineer Boot Camp
- 94 Advanced Cloud Engineer Boot Camp
- 43 DevOps Engineer Boot Camp
- 29 Cloud Native Developer Boot Camp
- 1 Express Training Courses
- 1 Express Courses - Discussion Forum
- 1.6K Training Courses
- 18 LFC110 Class Forum
- 4 LFC131 Class Forum
- 19 LFD102 Class Forum
- 133 LFD103 Class Forum
- 9 LFD121 Class Forum
- 60 LFD201 Class Forum
- LFD210 Class Forum
- 1 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum
- 23 LFD254 Class Forum
- 544 LFD259 Class Forum
- 100 LFD272 Class Forum
- 1 LFD272-JP クラス フォーラム
- 1 LFS145 Class Forum
- 20 LFS200 Class Forum
- 739 LFS201 Class Forum
- 1 LFS201-JP クラス フォーラム
- 1 LFS203 Class Forum
- 36 LFS207 Class Forum
- 295 LFS211 Class Forum
- 53 LFS216 Class Forum
- 45 LFS241 Class Forum
- 39 LFS242 Class Forum
- 33 LFS243 Class Forum
- 10 LFS244 Class Forum
- 27 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- 131 LFS253 Class Forum
- 964 LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 85 LFS260 Class Forum
- 124 LFS261 Class Forum
- 29 LFS262 Class Forum
- 78 LFS263 Class Forum
- 15 LFS264 Class Forum
- 10 LFS266 Class Forum
- 17 LFS267 Class Forum
- 16 LFS268 Class Forum
- 14 LFS269 Class Forum
- 194 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- 206 LFW211 Class Forum
- 148 LFW212 Class Forum
- 890 Hardware
- 212 Drivers
- 74 I/O Devices
- 44 Monitors
- 115 Multimedia
- 206 Networking
- 99 Printers & Scanners
- 85 Storage
- 747 Linux Distributions
- 88 Debian
- 64 Fedora
- 13 Linux Mint
- 13 Mageia
- 24 openSUSE
- 133 Red Hat Enterprise
- 33 Slackware
- 13 SUSE Enterprise
- 354 Ubuntu
- 468 Linux System Administration
- 38 Cloud Computing
- 67 Command Line/Scripting
- Github systems admin projects
- 93 Linux Security
- 77 Network Management
- 107 System Management
- 48 Web Management
- 62 Mobile Computing
- 22 Android
- 26 Development
- 1.2K New to Linux
- 1.1K Getting Started with Linux
- 525 Off Topic
- 127 Introductions
- 211 Small Talk
- 19 Study Material
- 782 Programming and Development
- 256 Kernel Development
- 492 Software Development
- 919 Software
- 255 Applications
- 181 Command Line
- 2 Compiling/Installing
- 76 Games
- 316 Installation
- 46 All In Program
- 46 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)