public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Delahaye <delahaym@esiee.fr>
To: Sureshkumar Kamalanathan <skk@sasken.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to write System calls?
Date: Tue, 30 Oct 2001 10:11:53 +0100	[thread overview]
Message-ID: <3BDE6ED9.7070401@esiee.fr> (raw)
In-Reply-To: <3BDD3AA1.18FCC633@sasken.com>

Hi,

First, I propose you to have a look on "Linux Kernel 2.4 Internals" from 
Tigran Aivazian. You can read it from the LDP at exact URL: 
http://www.linuxdoc.org/LDP/lki/index.html
In this, you'll probably see that syscalls are hardcoded (file 
arch/xxx/kernel/entry.S  on your kernel tree).
This means, AFAIK, you cannot implements a syscall function in a module ;-)
One other way is using  your modules to implements char drivers and use 
ioctl() as if it was yours syscalls. This method is generally 
recommended to users who wants to implement new sayscalls.


Am I wrong?

Regards,
Matthieu

Sureshkumar Kamalanathan wrote:

>Hi All,
>  Good day!
>  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.
>  Any pointers in this regard will be highly appreciated and I'll very
>grateful!!
>
>  Thanks in advance,
>
>Regards,
>Suresh.
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>




  reply	other threads:[~2001-10-30  9:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-29 11:16 How to write System calls? Sureshkumar Kamalanathan
2001-10-30  9:11 ` Matthieu Delahaye [this message]
2001-10-31  1:35 ` Keith Owens
  -- strict thread matches above, loose matches on Subject: below --
2001-10-30  9:25 Rajat Chadda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3BDE6ED9.7070401@esiee.fr \
    --to=delahaym@esiee.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=skk@sasken.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox