Results 1 to 4 of 4
hi all, I just started working on RH Linux Kernel. Do you have any references for "how to write our own system calls in Linux", which explains step by step ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-08-2005 #1
- Join Date
- May 2004
how to write system calls in Linux
I just started working on RH Linux Kernel. Do you have any references for "how to write our own system calls in Linux", which explains step by step so that as a beginner i can grab things easily.
- 07-08-2005 #2
You mean like open(), read(), fork(), system(), etc.?
- 07-09-2005 #3
- Join Date
- Oct 2001
- Täby, Sweden
I doubt there are any references for that. In fact, it is generally discouraged that you write new syscalls, snce it involves adding an entry for every architecture and lots of cruft here and there.
If you just need an entry point from userspace into a kernel function, I would recommend that you instead write a character device (suggestedly a misc device) and implement it as an ioctl.
- 07-09-2005 #4Originally Posted by Dolda2000
But generally, the only people who write new syscalls are the guys working on the kernel itself.