lkml.org 
[lkml]   [2001]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Fwd: Re: How to write System calls?
"Rajat Chadda" <rajat.chadda@wipro.com> wrote:

> Yes -- system calls can be implemented
> as modules.
> prog8.c is a module.
> prog9.c is a user-space program.
>
> In <asm/unistd.h> -- add
> #define __NR_my_func 250

thanks but my question was rather:
"in which case should we implement a new syscalls rather than a device
and a ioctl ?"

ie : what is better ? a new device and ioctl or new syscalls ?

and in which case, we should use one rather than the other ?

--
DINH Viêt Hoà, ingénieur associé, projet PARIS
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 75 98, Fax: +33 (0) 2 99 84 25 28
-
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.064 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site