From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: laurent LEQUIEVRE <laurent.lequievre@gmail.com>
Cc: "laurent.lequievre" <laurent.lequievre@univ-bpclermont.fr>,
"xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] need help to Xenomai Cobalt RTnet socket UDP recvfrom non blocking
Date: Sun, 19 Jun 2016 08:45:31 +0200 [thread overview]
Message-ID: <20160619064531.GL18433@hermes.click-hack.org> (raw)
In-Reply-To: <CABYaVQ3ehQpYsjfB7oQnfTUKXBs+RNR04G0gScJzciVNMeRArw@mail.gmail.com>
On Fri, Jun 17, 2016 at 03:04:54PM +0200, laurent LEQUIEVRE wrote:
> Hi Gilles,
>
> It works fine with :
> int64_t timeout = 3e09; // 3 seconds to test
> int return_ioctl = ioctl(udp_socket,RTNET_RTIOC_TIMEOUT,&timeout);
>
> but it needed to add these 'includes' to compile :
> #include <asm/ioctl.h>
> #include <rtdm/rtdm.h>
> #define RTIOC_TYPE_NETWORK RTDM_CLASS_NETWORK
> #define RTNET_RTIOC_TIMEOUT _IOW(RTIOC_TYPE_NETWORK, 0x11, int64_t)
>
> I read in the documentation that rtnet is included in xenomai 3, why there
> is no rtnet.h file installed with the xenomai include files
I simply forgot that part. I have used the headers for programs in
Xenomai sources only, where the headers are available. This needs a
cleanup, as the headers mix kernel and user declarations, and in
3.x, the RTDM drivers headers no longer start with rt. So rtnet.h
would probably become rtdm/net.h, and some part of it would have to
move to rtdm/uapi/net.h.
--
Gilles.
https://click-hack.org
prev parent reply other threads:[~2016-06-19 6:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-17 9:55 [Xenomai] need help to Xenomai Cobalt RTnet socket UDP recvfrom non blocking Laurent LEQUIEVRE
2016-06-17 10:07 ` Gilles Chanteperdrix
2016-06-17 10:21 ` Gilles Chanteperdrix
2016-06-17 11:28 ` Laurent LEQUIEVRE
2016-06-17 13:04 ` laurent LEQUIEVRE
2016-06-19 6:45 ` Gilles Chanteperdrix [this message]
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=20160619064531.GL18433@hermes.click-hack.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=laurent.lequievre@gmail.com \
--cc=laurent.lequievre@univ-bpclermont.fr \
--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.