I have doubt about the functioning of netlink socket in kernel-application interaction context. As I have read that netlink socket is used for event based notification from kernel to application. The benefit of this is Application is not required to poll.
But as in case of netlink socket also, it will also be polling finally to check whether some data has been sent from kernel. So my question is, how this functioning of netlink socket is different from Polling of file decriptor? I refered this but it tells how to use netlink, not the difference between netlink socket and polling.
poll()
function call is different from hardware polling. It is quite possible that manyread()
will return of -1; Contrast edge-triggered versus continually reading anI/O
value. What ever you read may not be referring topoll()
, the system call. – Raddatz