I wanna add my own system call to Fedora 18 kernel 3.8.2.
From kernel 3.3 I heard there is a new system to add system calls.
So where i can find a guides ?
I wanna print this text: "Hello world!" in terminal, not dmesg.
Download the source of the kernel version to which you want to add the system cal.
Add your new syscall to arch/x86/syscalls (assuming you are using a kernel > 3.3.4). To add your system call move to the end of the file and add an entry at the end with the syntax same as previous lines. Next edit arch/x86/include/asm/unistd_32.h and add an appropriate #define for the your system call at the end of the file. Lets assume you wish to name your syscall "demo"
Then add the following code to kernel/sys.c
SYSCALL_DEFINE0 signifies that demo is a system call with zero arguments.
Compile and install your new kernel. Your new syscall is then ready for testing.
Hi guys.
I have downloaded kernel 2.6.38-5 to add a system call.
I did the following steps:
1. I have added my system call to system call table
<src folder>/arc/x86/kernel/syscall_table_32.S
.long sys_mycall
2. i have added the system cal number in
<src... (5 Replies)
I'm trying to add a custom ("Hello world" :o) system call.
In /usr/src/linux/hello/ I put simple hello.c ...#include "linux/linkage.h" // for linking a system call
#include "linux/kernel.h" // for "printk"
asmlinkage int sys_hello()
{
printk(KERN_ALERT "Hello!");
return 1;
}... and in... (5 Replies)
Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?
Thanks
Muru (2 Replies)
How can I keep Solaris 10 GA and Fedora Core 3 In the same machine.I have got IBM netvista machine,with 40 gb hdd and 128 mb ram and 1.6 gzh pentium processor.Give me the step in detail.How do I pertition?How can I boot up both? :( :eek: :confused: (2 Replies)
How can I keep Solaris 10 GA with Fedora core 3 in the same system.I have got IBM Netvista system with 40 gb hdd ,128mb ram,pentium 4 1.66 gb processor.Pls tell me in detail,otherwise provide me good Url. :) :eek: :confused: (1 Reply)
I don't know why all these complicated stuff?!
I have Fedora Core 3 installed on my Laptop. It has the apache 2.0 + php 4.3.0 installed on it. But for some reasons I need to remove them and install everything by myself.
However, I don't see any way to remove a software from this silly oprating... (9 Replies)