From: Marco Jackel <ich@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] problem with reading from rt_pipe with a normal linux process
Date: Wed, 02 Aug 2006 20:46:31 +0200 [thread overview]
Message-ID: <eaqrtk$vkb$1@domain.hid> (raw)
Hi,
i do the following:
- create a pipe:
rt_pipe_create (&data_pipe, "data_pipe", PIPE_MINOR, PIPE_SIZE);
- write data to the pipe:
rt_pipe_write(&data_pipe, &pipe_buf, pipe_buf_sz, P_NORMAL);
- open the pipe from a normal linux process:
pipe_fd = open(DATA_PIPE, O_RDONLY);
- read the data from the pipe:
ret = read(pipe_fd, &pipe_buf, sizeof(pipe_buf));
Opening works, but the reading doesn't work. I get the error code "-1",
Operation not permitted.
Permission for the device file is ok:
voyage:~# ls -l /dev/rtp0
crw-rw-rw- 1 root root 150, 0 Jun 21 2006 /dev/rtp0
What am I doing wrong?
Thanks
Marco
Linux voyage 2.6.16.1-03-xenomai-2.1.2 #1 PREEMPT Tue Jul 11 10:17:15
GMT 2006 i586 GNU/Linux
Gnu C 17:
util-linux 2.12p
mount 2.12p
module-init-tools 3.2-pre1
e2fsprogs 1.37
pcmcia-cs 3.2.5
PPP 2.4.3
Linux C Library 2.3.2
Dynamic linker (ldd) 2.3.2
Procps 3.2.1
Net-tools 1.60
Kbd 69:
Sh-utils 5.2.1
Modules Loaded xeno_16550A xeno_rtdm uhci_hcd ohci_hcd usbcore
dm_mod
next reply other threads:[~2006-08-02 18:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-02 18:46 Marco Jackel [this message]
2006-08-02 18:53 ` [Xenomai-help] Re: problem with reading from rt_pipe with a normal linux process Marco Jackel
2006-08-02 18:58 ` Jan Kiszka
2006-08-02 19:07 ` Marco Jackel
2006-08-02 19:38 ` Jan Kiszka
2006-08-03 7:10 ` Marco Jackel
2006-08-03 17:46 ` Philippe Gerum
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='eaqrtk$vkb$1@domain.hid' \
--to=ich@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.