Re: Fwd: Re: How to write System calls?

DINH Viet Hoa (Viet-Hoa.Dinh@irisa.fr)
Tue, 30 Oct 2001 14:44:06 +0100


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