Hi,
       As per the source code(
https://gitlab.denx.de/Xenomai/xenomai/-/blob/v3.0.9/kernel/drivers/net/stack/ipv4/tcp/tcp.c),
I could see that some code have relation to  _RTIOC_LISTEN.For details, see
below.















*/*** *  rt_tcp_ioctl */static int rt_tcp_ioctl(struct rtdm_fd *fd,
unsigned int request, void __user *arg){    ... case _RTIOC_LISTEN: val =
rtnet_get_arg(fd, &_val, arg, sizeof(long)); if (IS_ERR(val)) return
PTR_ERR(val); return rt_tcp_listen(ts, *val); case ...}*

    There is also some code about  *_RTIOC_LISTEN in the drivers of IDDP
and XDDP.*You could see it in the url(
https://gitlab.denx.de/Xenomai/xenomai/-/blob/v3.0.9/kernel/drivers/ipc/xddp.c).For
details, see below.







*static int __xddp_ioctl(struct rtdm_fd *fd, unsigned int request, void
*arg){      ...    case _RTIOC_LISTEN: COMPAT_CASE(_RTIOC_ACCEPT):    ret =
-EOPNOTSUPP;    break; ...}*
    *Does these _RTIOC_LISTEN showed above in the two source code files
have some relations?* I don't think so.
*    There really exist some api relation to XDDP and IDDP.*For instance,
socket, bind, connect,etc.
    *And when you transport your messages through tcp or udp, you also use
the apis with the same name.*
*    So, i am a little confused.*

    Thank you for your attention.
    Look forward to hearing from you.

Reply via email to