adding a system call

mohit verma mohit89mlnc at gmail.com
Tue Feb 22 13:19:51 EST 2011


mulyadi ,
i followed the link
https://sites.google.com/a/ce-jmi.edu.in/tarique/adding-a-system-call-to-linux-2
.

modified files are:

1. /usr/src/kernels/linux-2.6.37/arch/x86/kernel/syscall_table_32.S

2. /usr/src/kernels/linux-2.6.37/include/asm-frv/unistd.h

3. /usr/src/kernels/linux-2.6.37/include/linux/syscalls.h

4. /usr/src/kernels/linux-2.6.37/Makefile
and i added:
1. #define __NR_hariohm 264
__SYSCALL(__NR_hariohm, sys_hariohm) in unistd.h file.

2.asmlinkage int sys_hariohm(const char __user *filename);  in file
syscalls.h

3. .long sys_hariohm  /* our system call */  in syscall_table_32.S

4 core-y        += kernel/ mm/ fs/ ipc/ security/ crypto/ block/ *hariohm/*
in makefile



On Tue, Feb 22, 2011 at 11:40 PM, Mulyadi Santosa <mulyadi.santosa at gmail.com
> wrote:

> On Wed, Feb 23, 2011 at 01:01, mohit verma <mohit89mlnc at gmail.com> wrote:
> > hi mulyadi,
> >
> > i used syscall number 264 . and for the coding standard  , can u tell me
> > where am i  off the track ?
>
> Exactly, how do you add "264" as the syscall number? the diff...I mean...
>
> NB: find lindent script for style reformatting...
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>



-- 
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110222/9bdb30ff/attachment.html 


More information about the Kernelnewbies mailing list