lkml.org 
[lkml]   [2001]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to write System calls?
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/
>



-
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/

\
 
 \ /
  Last update: 2005-03-22 13:12    [W:0.082 / U:4.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site