From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: ニャン星人 <1173264124@qq.com>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] Question about synchronisation between xenomai task and linux task
Date: Mon, 14 Dec 2015 23:35:05 +0100 [thread overview]
Message-ID: <20151214223505.GD16627@hermes.click-hack.org> (raw)
In-Reply-To: <tencent_7C005566224FD6F01071277C@qq.com>
On Mon, Dec 14, 2015 at 10:56:40PM +0800, ニャン星人 wrote:
> Hello, sorry to bother you. I have some questions about synchronisation. I am very eager for your help.
>
>
> I have read the source code file like rtipc.c, xddp.c, bufp.c,
> iddp.c, and pipe.c. Now I am wondering if there is a simple
> and effective way of synchronisation between xenomai task and
> linux task in user space and kernel space.
>
>
> I found most of synchronisation service introduced in Xenomai
> 3 Programmer¡¯s Reference Manual could be only used in xenomai
> task, linux task can not use these synchronisation service. If I
> use linux synchronisation service like mutex in xenomai task,
> xenomai task would switch to secondary mode which would cost a lot
> of time. So I want to know how to synchronize xenomai task and
> linux task in user space. o
>
>
> As I mentioned above, I have read the source code file like
> rtipc.c, xddp.c, bufp.c, iddp.c, I know lots of functions were
> realized in linux kernel modules as rtdm devices, both xenomai
> task and linux task could call these functions by rtdm
> interface. In kernel space, Synchronisation Services was used
> to synchronize between xenomai tasks, xnapc and
> wait_queue_head_t were used to synchronize between xenomai
> task and linux task. I am wondering if there is a simple to
> synchronize between xenomai task and linux task directly in
> kernel space.
>
>
> I'am a rookie of xenomai. It might be simple questions in your
> opinion. I would appreciate it if you could help.
The xddp sockets allow exchanging message between Xenomai and Linux
threads. Synchronizing per-se is complicated because the two types
of threads are scheduled by different schedulers.
> _______________________________________________ Xenomai mailing
> list Xenomai@xenomai.org
> http://xenomai.org/mailman/listinfo/xenomai
--
Gilles.
https://click-hack.org
next prev parent reply other threads:[~2015-12-14 22:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-14 14:56 [Xenomai] Question about synchronisation between xenomai task and linux task =?gb18030?B?pcul46Xz0MfIyw==?=
2015-12-14 22:35 ` Gilles Chanteperdrix [this message]
2015-12-15 3:42 ` [Xenomai] =?gb18030?q?=BB=D8=B8=B4=A3=BA__Question_about_synchronisation_between_xenomai_taskand_linux_task?= =?gb18030?B?pcul46Xz0MfIyw==?=
2015-12-15 6:21 ` [Xenomai] 回复: Question about synchronisation between xenomai taskand linux task Gilles Chanteperdrix
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=20151214223505.GD16627@hermes.click-hack.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=1173264124@qq.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.