Re: kernel hacking
for the kernel sections in there man release man crash that pretty much gives you what that tells you. Neither of which tells you how to do kernel hacking. Start reading code and understanding it. 2009/12/10 Robert Yuri robert.yu...@gmail.com: which the best way to learn about OpenBSD kernel ? I found a bunch of docs from FreeBSD site such as developer's handbook at http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ , there any same that for openbsd ? thanks, ry
Re: kernel hacking
On Thu, Dec 10, 2009 at 10:40:16AM -0700, Bob Beck wrote: 2009/12/10 Bret S. Lambert bret.lamb...@gmail.com: On Thu, Dec 10, 2009 at 02:24:00PM -0300, Robert Yuri wrote: which the best way to learn about OpenBSD kernel ? I found a bunch of docs from FreeBSD site such as developer's handbook at http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ , there any same that for openbsd ? /usr/src/sys/ /usr/src/sys/nfs /usr/src/sys/kern/vfs.* a bottle of red wine lots of lube and a teacup to collect your tears. nfs? ditch the teacup and get a funnel, because the tears will easily fill the empty wine bottle. -- Darrin Chandler| Phoenix BSD User Group | MetaBUG dwchand...@stilyagin.com | http://phxbug.org/ | http://metabug.org/ http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation
Re: kernel hacking
Robert Yuri wrote: I'll learn just reading kernel code ? so, many night you need to understand it ? Oh yes. Many.
Re: kernel hacking
On Thu, Dec 10, 2009 at 02:49:51PM -0300, Robert Yuri wrote: I'll learn just reading kernel code ? so, many night you need to understand it ? Absolutely: $ pwd /usr/src/sys/kern $ wc -l * | tail -n 1 64300 total It's going to take you many nights just to *read* it. Not to mention the namecache-induced vomit breaks.
Re: kernel hacking
On Thu, Dec 10, 2009 at 12:24 PM, Robert Yuri robert.yu...@gmail.com wrote: which the best way to learn about OpenBSD kernel ? I have mixed feelings about the need for an OpenBSD specific resource. There are man pages for the people who want to know *what* the kernel does (or is supposed to do). But if you want to know *how*, presumably to change it, the source is the definitive guide. It is, by definition, up to date and always accurate. And you can't change things without changing the source, so you'll have to get into it eventually. There are several books listed on the website about other kernels. The details, but the concepts and principles don't. It's a tossup between the BSD book and the dinosaur book. The BSD book was specific, but it's quite old now, so it can be hard to know what's correct and what's not. The dinosaur book takes a different approach, and while it's not tuned just for one OS, I think it does a better job of separating concept from implementation, letting you pick up the details from the source.
Re: kernel hacking
On Thu, 10 Dec 2009 14:24:00 -0300 Robert Yuri robert.yu...@gmail.com wrote: which the best way to learn about OpenBSD kernel ? I found a bunch of docs from FreeBSD site such as developer's handbook at http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ , there any same that for openbsd ? thanks, ry A few books on this topic in general worth mentioning is Modern Operating Systems by Tanenbaum, Operating Systems: Design and Implementation. The latter one details the MINIX system, though. Maybe others in here can chime in and come up with more recommendations.
Re: kernel hacking
On Thu, Dec 10, 2009 at 08:54:30PM +0100, Thomas Pfaff wrote: A few books on this topic in general worth mentioning is Modern Operating Systems by Tanenbaum, Operating Systems: Design and Implementation. The latter one details the MINIX system, though. Modern Operating Systems is mostly of historic value -- the modern is relative to the state of the art of the 1970, early 1980. Joerg
Re: kernel hacking
That book is very relevant. Modern really means add more shit. On Thu, Dec 10, 2009 at 09:04:31PM +0100, Joerg Sonnenberger wrote: On Thu, Dec 10, 2009 at 08:54:30PM +0100, Thomas Pfaff wrote: A few books on this topic in general worth mentioning is Modern Operating Systems by Tanenbaum, Operating Systems: Design and Implementation. The latter one details the MINIX system, though. Modern Operating Systems is mostly of historic value -- the modern is relative to the state of the art of the 1970, early 1980. Joerg