Messages in this thread | | | From | "Randazzo, Michael" <> | Subject | RE: Kernel 2.x POSIX Compliance/Conformance... | Date | Wed, 4 Feb 2004 14:44:00 -0500 |
| |
I was using at sem_close(), sem_destroy90, sem_open() ...
according to Posix.4, these are defined in semaphore.h - but are not defined in /lib/modules/<uname -r>/build/include/semaphore.h
Are Posix.4 calls only for userspace?
M.
-----Original Message----- From: Valdis.Kletnieks@vt.edu [mailto:Valdis.Kletnieks@vt.edu] Sent: Wednesday, February 04, 2004 2:41 PM To: Randazzo, Michael Cc: 'linux-kernel@vger.kernel.org' Subject: Re: Kernel 2.x POSIX Compliance/Conformance...
On Wed, 04 Feb 2004 14:30:39 EST, "Randazzo, Michael" <RANDAZZO@ddc-web.com> 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 "This message may contain company proprietary information. If you are not the intended recipient, any disclosure, copying, distribution or reliance on the contents of this message is prohibited. If you received this message in error, please delete and notify me."
- 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/
| |