1UDEV_MONITOR_RECEIVE_DEVICEu(d3e)v_monitor_receive_deUvDiEcVe_MONITOR_RECEIVE_DEVICE(3)
2
3
4
6 udev_monitor_receive_device, udev_monitor_enable_receiving,
7 udev_monitor_set_receive_buffer_size, udev_monitor_get_fd,
8 udev_monitor_get_udev - Query and modify device monitor
9
11 #include <libudev.h>
12
13 struct udev_device
14 *udev_monitor_receive_device(struct udev_monitor *udev_monitor);
15
16 int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor);
17
18 int
19 udev_monitor_set_receive_buffer_size(struct udev_monitor *udev_monitor,
20 int size);
21
22 int udev_monitor_get_fd(struct udev_monitor *udev_monitor);
23
24 struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor);
25
27 On success, udev_monitor_receive_device() returns a pointer to a newly
28 referenced device that was received via the monitor. The caller is
29 responsible to drop this reference when done. On failure, NULL is
30 returned.
31
32 On success, udev_monitor_enable_receiving() and
33 udev_monitor_set_receive_buffer_size() return an integer greater than,
34 or equal to, 0. On failure, a negative error code is returned.
35
36 On success, udev_monitor_get_fd() returns the file descriptor used by
37 this monitor. On failure, a negative error code is returned.
38
39 udev_monitor_get_udev() always returns a pointer to the udev context
40 that this monitor is associated with.
41
43 udev_new(3), udev_device_new_from_syspath(3), udev_enumerate_new(3),
44 udev_monitor_new_from_netlink(3), udev_monitor_filter_update(3),
45 udev_list_entry(3), systemd(1),
46
47
48
49systemd 243 UDEV_MONITOR_RECEIVE_DEVICE(3)