Re: adding a system call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:
On Wed, Feb 23, 2011 at 01:01, mohit verma <mohit89mlnc@xxxxxxxxx> 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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux