How should i start working on kernel programming?
Dave Arsenault
cynical.nihilist at gmail.com
Mon Mar 5 20:58:19 UTC 2007
How would I go about debugging a LKM. I am currently working on a simple
kernel module that overwrites the open() syscall and sends the output
through a parsing routine.
I've read many articles talking about using the (gdb) add-symbol-file
lkm.ko<address> and in fact that works but as far as I know I can set
breakpoints
that never break and that's pretty much it.
Thanks
On 3/3/07, Peter Jeremy <peterjeremy at optushome.com.au> wrote:
>
> On 2007-Mar-03 10:21:27 +0530, ajay gopalakrishnan <geek.dwells at gmail.com>
> wrote:
> >I am new to FreeBSD and I would like to know how to start off with kernel
> >level programming.
>
> Apart from the links Sam gave you, I'd suggest you look at "The Design
> and Implementation of the FreeBSD Operating System" by Kirk McKusick
> and George Neville-Neil.
>
> As a general introduction, you might like to look through "The Complete
> FreeBSD" by Greg Lehey (http://www.lemis.com/grog/Documentation/CFBSD/).
>
> > Also, the header packages used at the system level code and
> >kernel level code were different.
>
> Yes. The internal kernel interfaces are defined in the section 9 man
> pages.
>
> --
> Peter Jeremy
>
>
More information about the freebsd-hackers
mailing list