views:

41

answers:

1

Are there any good (entry-level) tutorials on adding system calls to FreeBSD via kernel loadable modules? Specifically, the required form of the methods, getting information from processes, etc.

+5  A: 

I'm really happy to see that your professor is giving you such practical assignments. I wish I had such profs.

Anyway, the thing is when you are working in the kernel domain you can hardly find any resources. People who are working in kernel domain don't document stuff or write tutorials. So, its really hard to find any "Entry Level" documents. Also, even if you find any such tutorial, the things in kernel keeps on changing and document wont be updated. When I started I had to learn things by reading the kernel code.

Another important thing is Linux is more documented than any UNIX. Sometimes you can read Linux stuff and port that knowledge to UNIX. Enough with the complaining. Now here are the resources that might help you.

BSD UNIX:

Linux:

claws
Thanks so much! This was very helpful.
dcmoebius
@dcmoebius: I'm glad it helped you. If you don't have any problem sharing your code. I would suggest you to write a tutorial/blog post on this assignment. And give the link here. It will help others.
claws
@claws: That's a great idea. I'll do that, but unfortunately later assignments are based on this one. So I'll wait a couple weeks to release a "solution" :P
dcmoebius