LWN.net Logo

netlink

netlink

Posted Sep 24, 2009 8:04 UTC (Thu) by smurf (subscriber, #17840)
Parent article: Quotes of the week

netlink has one huge advantage: you can tell the kernel "send me any changes" on the netlink socket and then simply select() on the file descriptor. That doesn't work with any random ioctl interface.
Not requiring programs to poll is good.


(Log in to post comments)

netlink

Posted Sep 28, 2009 6:03 UTC (Mon) by neilbrown (subscriber, #359) [Link]

Even better: export the data via sysfs attribute file, and use select/poll on those.

(though to be fair to ioctl: it is quite possible to have an ioctl that blocks until new state is available - see DM_DEV_WAIT_CMD).

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds