Contributed by Dengue on from the kernel-puffy dept.
Please I am not asking on the feasibility of such a project, if it is a good or a bad thing. I am simply asking where to start to do it as a means to learn how to tinker with the OBSD kernel."
One good place to start is man lkm and look at the examples in /usr/share/lkm . Any other resources out there?
(Comments are closed)
By Anonymous Coward () on
Comments
By Alistair McMillan () on www.mcmillan.cx
Comments
By Anonymous Coward () on
Comments
By tedu () on
man pages don't tell you what to do, of course. if the man pages could say "you add this feature by doing this..." don't you think the author would have just written the code?
Comments
By Anonymous Coward () on
By m-- () on
like something the OpenBSD project would
endorse.
By tedu () on
there's no reason kernel modules or patches can't be maintained by somebody without incorporation into the official kernel.
but the best answer to "how do i learn how to program in the kernel?" is "you learn by doing." The kernel is large, and has many different subsystems. And telling you how one thing works doesn't always help you edit something else, or add a new feature.
One good starting point is the man pages for section 9, kernel functions. They are not all complete, however. If you are not happy with how well something is described, try to figure it out and submit patches. If you can write a manpage for something, you're on your way to understanding it.
One final note: All new features require documentation. So don't submit anything without it. :)
By Josh () selerius at codefusion dot org on mailto:selerius at codefusion dot org
By Jason () on
http://deadly.org/article.php3?sid=20010812210650
I think it's pretty useful. I don't recall who posted it though (Dries?). Anyway, enjoy and happy hacking!
Comments
By Anonymous Coward () on
By Anonymous Coward () on
"The Design and Implementation of the 4.4BSD Operating System" by McKusick, Bostic,Karels, Quaterman, isbn: 0201549794
While this book is not openbsd specific, it is gives a pretty good description of many kernel structures found in openbsd. With this book you should be able to start reading through some kernel code to figure out how the source is organized, etc. I think that cscope (http://cscope.sourceforge.net/) is a really good tool for this, allowing you to search through all of the source files easily.
After you read through kernel code for a while, it shouldn't be that hard for you to start coding yourself!
Comments
By Anonymous Coward () on
By linny () linny1106@yahoo.com on mailto:linny1106@yahoo.com
i am linny from china.
who can do me a favor to send me a copy of the book (The Design and Implementation of the 4.4BSD Operating System" by McKusick, Bostic,Karels, Quaterman, isbn: 0201549794
) :)
i am now 20 .in a aust.edu.cn.fot the study of chemistry.(my godness).but i am interested in
linux kernel .hurd/mach,bsd.xinu,enjoying their differences and their ..
now i am not a hacker ,and i am not sure i wont .
hoping to get the book (
1.The Design and Implementation of the 4.4BSD Operating System" by McKusick, Bostic,Karels, Quaterman, isbn: 0201549794
2.internetworking with tcpip vol11:design,implementtatio,and internals
)
because in my china i only can get the chinese version.i would prefer the english version.
thanks from linny who hope to do something to the
ones he love --linux.hurd,xinu.bsd.
linny1106@yahoo.com.cn
linny1106@hotmail.com
.may be you will give some advises on how to do
the OS-kenel designing .protocol implementing
By Dave Parfitt () diparfitt@yahoo.com on mailto:diparfitt@yahoo.com
reading through the code is the best way to go...
Hope this helps -
dave
By Anonymous Coward () on
By GPS () GeorgePS@XMission.com on mailto:GeorgePS@XMission.com