Patrick Rittiner wrote: > hi everyone, > > I have a question about rt_dev_ioctl(), can it be used like the normal > ioctl() in userspace? I mean, can I use it for things like that: ? > > // Grab the index of given interface > memset(&ifInfo, 0x00, sizeof(ifInfo)); > strncpy(ifInfo.ifr_name, iface, IFNAMSIZ); > check(ioctl(sock, SIOCGIFINDEX, &ifInfo), "ioctl()"); > ifaceIndex = ifInfo.ifr_ifindex; >
It can be used like that if you use the Xenomai POSIX skin. Otherwise, you have to state explicitly via the "rt_dev_" prefix that you are addressing a real-time socket (same for all other socket services involved). Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
_______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users