0
I am monitoring the events of all devices connected to the host. Linux has udev daemon , which listens to all the device specific events such as online, offline, add, remove and change.
I use a function provided by linux udev_device_get_action, which is used to get the events / actions on that device.
On my machine, I am continuously getting change events returned from this function in my code's variable. [It returns the character pointer]
I checked the linux code for function udev_device_get_action, it just returns the action from the udev device structure.
UDEV_EXPORT const char *udev_device_get_action(struct udev_device *udev_device)
{
if (udev_device == NULL)
return NULL;
return udev_device->action;
}
So, how can i know, where exactly those change events are coming from ??
But what is the meaning of CHANGE_EVENTS which i am getting a lot from udevd..?
In my driver, i have taken care of ADD, REMOVE, ONLINE, OFFLINE events of UDEV for devices, but i am not getting purpose rather behaviour behind listening to CHANGE_EVENTS.
What is the cause for this and what would be use of it for any block-driver.? – amitam – 2016-01-04T07:05:38.043