mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randazzo, Michael" <RANDAZZO@ddc-web.com>
To: "'Valdis.Kletnieks@vt.edu'" <Valdis.Kletnieks@vt.edu>,
	"Randazzo, Michael" <RANDAZZO@ddc-web.com>
Cc: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: RE: Kernel 2.x POSIX Compliance/Conformance...
Date: Wed, 4 Feb 2004 14:44:00 -0500	[thread overview]
Message-ID: <89760D3F308BD41183B000508BAFAC4104B16F34@DDCNYNTD> (raw)

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


             reply	other threads:[~2004-02-04 19:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-04 19:44 Randazzo, Michael [this message]
2004-02-04 19:58 ` Valdis.Kletnieks
  -- strict thread matches above, loose matches on Subject: below --
2004-02-04 20:22 Randazzo, Michael
2004-02-04 21:39 ` Richard B. Johnson
2004-02-04 20:18 Randazzo, Michael
2004-02-04 20:21 ` Valdis.Kletnieks
2004-02-04 20:51 ` Torrey Hoffman
2004-02-04 21:02 ` J.A. Magallon
2004-02-04 19:30 Randazzo, Michael
2004-02-04 19:40 ` Valdis.Kletnieks

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=89760D3F308BD41183B000508BAFAC4104B16F34@DDCNYNTD \
    --to=randazzo@ddc-web.com \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®