From: Caffreyfans <Caffreyfans@163.com>
To: xenomai@xenomai.org
Subject: [BUG] copperlate/eventobj.c ->>> eventobj_inquire(), don't work
Date: Fri, 10 Jul 2020 14:04:25 +0800 [thread overview]
Message-ID: <e371ebd5-519a-cf6e-998e-b2591d4f1c48@163.com> (raw)
Hi sir,
I'm trying to make another skin for xenomai. When I do something
about "event". I use `eventobj_inquire()` to get event flags. But no
matter what value I post, I always get 0.
I find that eventobj_inquire() is not working. I know
`alchemy/event` also use `eventobj`. So I write a test code by using
alchemy skin. I am curious whether it is my own problem or there is an
error in xenomai.
Test code:
```
struct RT_EVENT event;
struct RT_EVENT_INFO info;
ret = rt_event_create(&event, "EVENT", 0, EV_FIFO);
rt_event_signal(&event, 0x2);
rt_event_inquire(&event, &info);
printf("info.value = %d\n", info.value);
printf("info.name = %s\n", info.name);
printf("info.nwaiters = %d\n", info.nwaiters);
```
Result:
```
info.value = 0
info.name = "EVENT"
info.nwaiters = 0
```
Environment:
xenomai-3.1、Linux-4.19.114、--core cobalt.
next reply other threads:[~2020-07-10 6:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-10 6:04 Caffreyfans [this message]
2020-07-10 8:38 ` [BUG] copperlate/eventobj.c ->>> eventobj_inquire(), don't work Philippe Gerum
2020-07-13 17:59 ` Jan Kiszka
2020-07-13 18:27 ` 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=e371ebd5-519a-cf6e-998e-b2591d4f1c48@163.com \
--to=caffreyfans@163.com \
--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.