From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Herrera-Bendezu, Luis" <lherrera@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Shared memory and fstat()
Date: Wed, 16 Jun 2010 22:39:46 +0200 [thread overview]
Message-ID: <4C193692.2080309@domain.hid> (raw)
In-Reply-To: <6FCCA913376DD7488F4139A4D11B8F4801384570@domain.hid>
Herrera-Bendezu, Luis wrote:
> Hello,
>
> Can a file descriptor returned from Xenomai POSIX skin
> shm_open()/ftruncate() used in fstat()?
No.
>
> Value returned for st_size in the stat structure is
> always 0 despite change of size using ftruncate().
>
> Noticed that shared memory object does not have an entry
> on /dev/shm as regular POSIX objects. Where is it located?
> If entry exists, can it be used to query its size?
No, xenomai posix skin shared memory do not exist as filesystem objects,
they will only be listed in /proc/xenomai/heap.
Note, however, that they are only useful for sharing memory between
kernel-space posix applications and user-space posix applications, which
should have become rare these days. If what you are looking for is
simply a way for sharing memory between to user-space real-time
applications, they you can use linux regular shared memories, for which
fstat works.
>
> Thanks,
> Luis
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Gilles.
next prev parent reply other threads:[~2010-06-16 20:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-16 20:20 [Xenomai-help] Shared memory and fstat() Herrera-Bendezu, Luis
2010-06-16 20:39 ` Gilles Chanteperdrix [this message]
2010-06-16 20:47 ` Herrera-Bendezu, Luis
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=4C193692.2080309@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=lherrera@domain.hid \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.