lkml.org 
[lkml]   [1999]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Adding new syscalls via modules?
Alexander Maryanchick wrote:
> To safely register new function, the kernel requires some sort of naming
> service.
>
> It's still possible to use wrapper:
> register_syscall("Tetris bonus game", &handler);
> in the kernel and
> get_syscall_number("Tetris bonus game");
> in libc.
>
> But this is already new mechanism - not regular syscalls!

Traditionally this is done by inventing a new character device and using
ioctls. The device gives you a name, ioctls give you a call
multiplexor.

Of course this is ugly so NT does it a better way ;-)

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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