Re: kernel hacking

2009-12-10 Thread Bob Beck
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

2009-12-10 Thread Darrin Chandler
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

2009-12-10 Thread Ian Darwin

Robert Yuri wrote:

I'll learn just reading kernel code ?
so, many night you need to understand it ?
  


Oh yes. Many.



Re: too many cpus

2009-12-10 Thread Sean Kennedy
 Subject: Re: too many cpus

 2009/12/9 Theo de Raadt dera...@cvs.openbsd.org:
 
  Being different just to be different is also pretty silly.  So unless
  there is a good reason not to choose '1' for this purpose, I'd love to
  see a new diff from Ted.
 
  Being the same is a burden.  You should go read the original top source
  code.
 
 making the key the same when we have a chance to is not a burden.

Somebody forgot to provide much needed beer for the one (of many) nights that
Theo spent reading Al Cahalan's re-write...(and others, but I don't have beer
either.)
top(1) and ps(1) have a long history. And not to mention Baggage...
But having some consistency would be good. It bugs me when I shift from SYSV
to oBSD and type 'ps-ef'.

_
Eligible CDN College  University students can upgrade to Windows 7 before Jan
3 for only $39.99. Upgrade now!
http://go.microsoft.com/?linkid=9691819



Re: kernel hacking

2009-12-10 Thread Bret S. Lambert
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

2009-12-10 Thread Ted Unangst
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

2009-12-10 Thread Thomas Pfaff
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

2009-12-10 Thread Joerg Sonnenberger
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



Psicologia para todos

2009-12-10 Thread Lic. Mercedes Alvarez
A g r a d e c e r e m o s  s u  d i f u s i o n !

[demime 1.01d removed an attachment of type image/jpeg which had a name of 
1.jpg]



Re: kernel hacking

2009-12-10 Thread Marco Peereboom
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