Re: Kernel 2.x POSIX Compliance/Conformance...
From: Valdis . Kletnieks
Date: Wed Feb 04 2004 - 14:43:55 EST
On Wed, 04 Feb 2004 14:30:39 EST, "Randazzo, Michael" <RANDAZZO@xxxxxxxxxxx> said:
> I have made attempts to use (Posix semaphores) in my LKM, but find
> no POSIX support in /lib/modules/<uname -r>/build/include/unistd.h
Attempting to use syscalls intended for userspace while inside the kernel
is generally regarded as Bad Juju.
'man semctl' says:
Under Linux, the function semctl is not a system call, but is imple-
mented via the system call ipc(2).
#define __NR_ipc 117
is what you weren't finding in unistd.h
Attachment:
pgp00000.pgp
Description: PGP signature