Re: a newbie question

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

 



On Fri, Sep 21, 2001 at 01:02:37PM +0530, C. Mohanasundaram wrote:

> I tried to write my own system call
> and call it from the user land using _syscall0 macro
> The following code works but
> I m not sure whether the following code that i have written is the legal and 
> safer way of doing it.

As I see you suspect, this is fragile, as it will break on other platforms and
if a new syscall is added to the mainline kernel.

There is no other way to add a new syscall than to patch arch/i386/kernel/entry.S

Note that adding new syscalls is not recommended - usually there is a better way.

regards
john
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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