I study programming in embedded systems, using Linux as the main platform. And I want to create a device event management service. This service is an application / daemon for user space that will determine if the connected hardware module raised an event. But my problem is that I donβt know where to start.
I read about the Netlink implementation for exchanging data between users and the kernels, and it seems like a good idea, but not sure if this is the best solution. But I read that the UDEV device manager uses Netlink to wait for uevent from the kernel space, but itβs not clear to me how to do this.
I read about sysfs polls, but it seems nice to try out the file system.
What implementation do you think I should use in my service? Should I use netlink (hard / no clue how to) or just poll sysfs (not sure if it works)?
thanks
linux
domlao
source share