Re: suggestion to a new system call

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

 



On Tue, Jun 29, 2004 at 02:20:48PM +0530, shammas wrote:
> 
>    Just adding an entry to  entry.s is not enough.
>    This page has the details
>    [1]http://www.csee.umbc.edu/courses/undergraduate/CMSC421/fall02/burt/projects/howto_add_systemcall.html
>    regards manish
> 
>    Hi,
> 
> 
> 
>    Yes just adding an entry in entry.S wont serve the purpose as the the system call interfaces are through
>    library calls. You will have to make changes to the library also. I think you can use uclibc library or
>    similar ones to which the interface can be added and compiled.
> 
>    This is my understanding, please correct me if i am wrong.
> 

For easy access with type checking you need to add the system call to
the library, although you can use syscall directly instead.

IIRC the libraries just implement the system calls as a front end to
syscall don't remember if they were inline functions or not (not
critical in this case since you get the overhead of a context switch
and possible a schedule in the return path so ...

> 
> 
>    regards,
> 
>    Shammas
> 
>    +++++++++++++++++++++++++++++++++++++++++++
>    This Mail Was Scanned By Mail-seCure System
>    at the Tel-Aviv University CC.
> 
> References
> 
>    1. http://www.csee.umbc.edu/courses/undergraduate/CMSC421/fall02/burt/projects/howto_add_systemcall.html

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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