Find the answer to your Linux question:
Results 1 to 4 of 4
hi all, I am new here.. I want to know how do I add my own system call to the kernel.. I understand the steps needed..but i am not sure ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    1

    adding system calls in linux..


    hi all,

    I am new here..

    I want to know how do I add my own system call to the kernel..

    I understand the steps needed..but i am not sure as where to start with...

    i also need to place this system call within a module..and den be able to call it..

    the call route is understandable but I am not able to begin a basic implementation of the coding part..

    need some guidance as to where to start from..i have the makefile , the my_syscall.c ...with entry in syscall_table.S..

    btw.i need to do all this in linux 2.6.22.6..

    any guidance would be of great help...

    thanks in advance..

    mythri

  2. #2
    Just Joined!
    Join Date
    Oct 2007
    Posts
    1
    Hi mythri same question from my side kernel 2.6.20 Redhat 9.. seems these forums are inactive.. Very badd

  3. #3
    Just Joined!
    Join Date
    Jun 2006
    Posts
    29
    Hi Mithri/Phanikiran,

    Please go throught
    http://www.cs.fsu.edu/~cop4610t/week...SystemCall.doc


    Make sure your system call is compiled along with kernel, rebuild kernel and then test it.



    Ashok Athukuri

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Quote Originally Posted by phanikiran View Post
    Hi mythri same question from my side kernel 2.6.20 Redhat 9.. seems these forums are inactive.. Very badd
    Not really, have you search on the forum? These links show how you can manipulate syscalls:

    http://www.linuxforums.org/programmi...ng_part_i.html
    http://www.linuxforums.org/programmi...g_part_ii.html

    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •