From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <55196828.9020207@xenomai.org> Date: Mon, 30 Mar 2015 17:13:44 +0200 From: Philippe Gerum MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] There is XDDP Sockets support in kernel? List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Helder Daniel , "Xenomai@xenomai.org" 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. -- Philippe.