Enabling and disabling system calls
- From: Rafael Almeida <rafaelc@xxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 21:25:50 -0300
Hello,
In my current research about how to write system calls I found myself
stuck again. After reading a little bit about the kernel, and the
actual code I found out how to make the system calls (or at least one
way to do it).
What I do is that I edit the syscall_table.S, located at
arch/i386/kernel (all paths I'm going to say is relative to the kernel
root), and write ``.long sys_mysyscall'' at the end of the table. I then
create a mysyscall.c on that same directory, where I define my system
call. I add it to the Makefile on the obj-y variable. After that I add
__NR_mysycall defined as a new number and I increment NR_syscalls on
unistd.h. Then I compile the kernel and my system call seems to work.
I understand how to create a new entry to Kconfig that would make my
system call be compiled into the kernel or not. I know even how to make
the Makefile not compile the mysyscall.c if the option is not selected.
But my problem is that the system call is still declared on the
syscall_table.S file. Is there another place to declare my system call?
Am I missing something?
Thank you for your attention,
Rafael
.
- Follow-Ups:
- Re: Enabling and disabling system calls
- From: Kaz Kylheku
- Re: Enabling and disabling system calls
- Prev by Date: Re: Looking for a profiler
- Next by Date: how to build a single boot CD/DVD supporting x86 and IPF(ia64) in linux
- Previous by thread: Problem with Postscript
- Next by thread: Re: Enabling and disabling system calls
- Index(es):
Relevant Pages
|