[lkml]   [2001]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: How to write System calls?
    On Mon, 29 Oct 2001 16:46:49 +0530, 
    Sureshkumar Kamalanathan <> wrote:
    > I have 2.4.4 kernel. I have to write some system calls for
    >interaction with the kernel from the userland. Can any of you tell me
    >where I can get the information regarding this?
    > I have the Linux Kernel Internals by Beck and others. But it gives
    >the procedure only for 2.2.x.
    > Moreover I need to implement these system calls as Loadable modules.

    Syscall entries are hard coded into the syscall table, usually in

    There is no generic way to add a syscall that is serviced by a module.
    I know that the modutils HOWTO gives examples of syscalls in modules
    but that doc is out of date, on some architectures you have to adjust
    additional registers to make a remote function call. On those systems
    the syscall table works because the kernel is compiled with special
    flags, that will not work for modules. Also Linus has said that he
    does not want modules to be able to override syscalls.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:12    [W:0.022 / U:2.864 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site