views:

63

answers:

2

Hello guys,

i am new to the Operating System development , and in college i have to add a system call to linux kernel,

could you guys give me some in sight on what i will have to learn to be able to do this please.

i have to extend the linux kernel, so any cool ideas would also be very helpful...

thank you

A: 

The Linux kernel can take modules that can be loaded at runtime, thereby freeing up memory when they're not in use.

Ref:

http://en.wikipedia.org/wiki/Loadable_kernel_module

http://en.wikipedia.org/wiki/Lsmod

http://en.wikipedia.org/wiki/Modprobe

http://tldp.org/HOWTO/Module-HOWTO/x839.html

Andrew Sledge
no but , but for my project i have to extend the linux kernel itself and not add a module to it, but cheers for the help, any ideas on a good system call, im not used to OS dev
molleman
While Andrew is on a slight tangent (modules don't answer the question of adding system calls), for rapid development purposes it is sometimes useful to build the functionality as a module implementing a virtual device and use `ioctl`. Once things solidify make it a static part of the kernel with its own system call.
TomMD