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 #1Just Joined!
- Join Date
- May 2004
- Posts
- 15
how to write system calls in Linux
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 so that as a beginner i can grab things easily.
regards,
Kiran.
- 07-08-2005 #2
You mean like open(), read(), fork(), system(), etc.?
- 07-09-2005 #3Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
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 #4This *is* true, but I have seen references on how to do such a thing before, just can't find the URL.
Originally Posted by Dolda2000
But generally, the only people who write new syscalls are the guys working on the kernel itself.


Reply With Quote
