All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Helder Daniel <hdaniel@ualg.pt>,
	"Xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] There is XDDP Sockets support in kernel?
Date: Mon, 30 Mar 2015 17:17:46 +0200	[thread overview]
Message-ID: <5519691A.7020009@xenomai.org> (raw)
In-Reply-To: <55196828.9020207@xenomai.org>

On 03/30/2015 05:13 PM, Philippe Gerum wrote:
> On 03/30/2015 04:55 PM, Helder Daniel wrote:
>> Hi,
>>
>> When trying to compile a kernel module that sets up a XDDP socket (code
>> snippet below) with Xenomai 3.x-rc3 on Cobalt setup,
>> rtdm_bind() returns ENOSYS.
>> This means that XDDP sockets can not be used in kernel?
>>
> 
> No, in this case it likely means that you are calling it from a
> real-time context (i.e. a real-time kthread started with
> rtdm_task_create()). The binding op can only run from a non-rt context,
> e.g. module init code, regular kthread context, _nrt handler.
> 

Please note that such restriction only applies to kernel-based callers.
When called from user-space via the bind() routine, Cobalt automatically
switches the caller to non-rt mode.

-- 
Philippe.


  reply	other threads:[~2015-03-30 15:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-30 14:55 [Xenomai] There is XDDP Sockets support in kernel? Helder Daniel
2015-03-30 15:13 ` Philippe Gerum
2015-03-30 15:17   ` Philippe Gerum [this message]
2015-03-30 15:20   ` Gilles Chanteperdrix
2015-03-30 15:27     ` Philippe Gerum
2015-03-30 15:29       ` Gilles Chanteperdrix
2015-03-30 15:37         ` Helder Daniel
2015-03-30 15:37         ` Philippe Gerum
2015-03-30 15:40           ` Helder Daniel
2015-03-30 15:55             ` Helder Daniel
2015-03-30 19:00               ` Philippe Gerum
2015-04-16 14:17                 ` Helder Daniel

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=5519691A.7020009@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=hdaniel@ualg.pt \
    --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.