[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Adding a new system call
Hi all,
I tried to implement a new system call. I used the instructions of
http://user-mode-linux.sourceforge.net/lksct/index.html
in the linux kernel 2.6.11.8
I compiled and I made a program example:
#include <stdio.h>
#include <errno.h>
#include <asm/arch/unistd.h>
#include <linux/linkage.h>
_syscall0(int,cloak)
int main(){
printf("Chamando cloak com pid 1\n");
cloak();
return 0;
}
The coak() is supposed to print a message, we could see it using
dmesg. But, it doesnt happen.
I also added the system call in the entry.S file.
What can I do to solve this problem? The sample program runs, but the
system call has no effect.
--
Karane.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/