Searched refs:udev_monitor (Results 1 - 13 of 13) sorted by relevance

/systemd/src/libudev/
H A Dlibudev-monitor.c51 * udev_monitor:
55 struct udev_monitor { struct
98 static struct udev_monitor *udev_monitor_new(struct udev *udev)
100 struct udev_monitor *udev_monitor; local
102 udev_monitor = new0(struct udev_monitor, 1);
103 if (udev_monitor == NULL)
105 udev_monitor->refcount = 1;
106 udev_monitor
153 monitor_set_nl_address(struct udev_monitor *udev_monitor) argument
171 struct udev_monitor *udev_monitor; local
288 udev_monitor_filter_update(struct udev_monitor *udev_monitor) argument
387 udev_monitor_allow_unicast_sender(struct udev_monitor *udev_monitor, struct udev_monitor *sender) argument
401 udev_monitor_enable_receiving(struct udev_monitor *udev_monitor) argument
438 udev_monitor_set_receive_buffer_size(struct udev_monitor *udev_monitor, int size) argument
445 udev_monitor_disconnect(struct udev_monitor *udev_monitor) argument
462 udev_monitor_ref(struct udev_monitor *udev_monitor) argument
480 udev_monitor_unref(struct udev_monitor *udev_monitor) argument
503 udev_monitor_get_udev(struct udev_monitor *udev_monitor) argument
518 udev_monitor_get_fd(struct udev_monitor *udev_monitor) argument
525 passes_filter(struct udev_monitor *udev_monitor, struct udev_device *udev_device) argument
582 udev_monitor_receive_device(struct udev_monitor *udev_monitor) argument
711 udev_monitor_send_device(struct udev_monitor *udev_monitor, struct udev_monitor *destination, struct udev_device *udev_device) argument
797 udev_monitor_filter_add_match_subsystem_devtype(struct udev_monitor *udev_monitor, const char *subsystem, const char *devtype) argument
820 udev_monitor_filter_add_match_tag(struct udev_monitor *udev_monitor, const char *tag) argument
839 udev_monitor_filter_remove(struct udev_monitor *udev_monitor) argument
[all...]
H A Dlibudev.h113 * udev_monitor
117 struct udev_monitor;
118 struct udev_monitor *udev_monitor_ref(struct udev_monitor *udev_monitor);
119 struct udev_monitor *udev_monitor_unref(struct udev_monitor *udev_monitor);
120 struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor);
[all...]
H A Dlibudev-private.h79 int udev_monitor_disconnect(struct udev_monitor *udev_monitor);
80 int udev_monitor_allow_unicast_sender(struct udev_monitor *udev_monitor, struct udev_monitor *sender);
81 int udev_monitor_send_device(struct udev_monitor *udev_monitor,
82 struct udev_monitor *destination, struct udev_device *udev_device);
83 struct udev_monitor *udev_monitor_new_from_netlink_fd(struct udev *udev, const char *name, int fd);
/systemd/src/udev/
H A Dudevadm-monitor.c82 _cleanup_udev_monitor_unref_ struct udev_monitor *udev_monitor = NULL; local
83 _cleanup_udev_monitor_unref_ struct udev_monitor *kernel_monitor = NULL;
164 udev_monitor = udev_monitor_new_from_netlink(udev, "udev");
165 if (udev_monitor == NULL) {
169 udev_monitor_set_receive_buffer_size(udev_monitor, 128*1024*1024);
170 fd_udev = udev_monitor_get_fd(udev_monitor);
176 if (udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, subsys, devtype) < 0)
183 if (udev_monitor_filter_add_match_tag(udev_monitor, tag) < 0)
187 if (udev_monitor_enable_receiving(udev_monitor) <
[all...]
H A Dudevd.c88 struct udev_monitor *monitor;
148 struct udev_monitor *monitor;
212 static int worker_new(struct worker **ret, Manager *manager, struct udev_monitor *worker_monitor, pid_t pid) {
334 _cleanup_udev_monitor_unref_ struct udev_monitor *worker_monitor = NULL;
1321 _cleanup_udev_monitor_unref_ struct udev_monitor *monitor = NULL;
/systemd/src/network/
H A Dnetworkd.h46 struct udev_monitor *udev_monitor; member in struct:Manager
H A Dnetworkd-manager.c229 struct udev_monitor *monitor = m->udev_monitor;
253 m->udev_monitor = udev_monitor_new_from_netlink(m->udev, "udev");
254 if (!m->udev_monitor)
257 r = udev_monitor_filter_add_match_subsystem_devtype(m->udev_monitor, "net", NULL);
261 r = udev_monitor_enable_receiving(m->udev_monitor);
269 udev_monitor_get_fd(m->udev_monitor),
1077 udev_monitor_unref(m->udev_monitor);
/systemd/src/shared/
H A Dudev-util.h33 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_monitor*, udev_monitor_unref);
/systemd/src/test/
H A Dtest-libudev.c215 struct udev_monitor *udev_monitor = NULL; local
226 udev_monitor = udev_monitor_new_from_netlink(udev, "udev");
227 if (udev_monitor == NULL) {
231 fd_udev = udev_monitor_get_fd(udev_monitor);
233 if (udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "block", NULL) < 0 ||
234 udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "tty", NULL) < 0 ||
235 udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "usb", "usb_device") < 0) {
240 if (udev_monitor_enable_receiving(udev_monitor) < 0) {
273 device = udev_monitor_receive_device(udev_monitor);
[all...]
/systemd/src/core/
H A Ddevice.c601 if (m->udev_monitor) {
602 udev_monitor_unref(m->udev_monitor);
603 m->udev_monitor = NULL;
616 if (!m->udev_monitor) {
617 m->udev_monitor = udev_monitor_new_from_netlink(m->udev, "udev");
618 if (!m->udev_monitor) {
626 (void) udev_monitor_set_receive_buffer_size(m->udev_monitor, 128*1024*1024);
628 r = udev_monitor_filter_add_match_tag(m->udev_monitor, "systemd");
634 r = udev_monitor_enable_receiving(m->udev_monitor);
640 r = sd_event_add_io(m->event, &m->udev_event_source, udev_monitor_get_fd(m->udev_monitor), EPOLLI
[all...]
H A Dmanager.h172 struct udev_monitor* udev_monitor; member in struct:Manager
/systemd/src/login/
H A Dlogind.h55 struct udev_monitor *udev_seat_monitor, *udev_device_monitor, *udev_vcsa_monitor, *udev_button_monitor;
/systemd/src/rfkill/
H A Drfkill.c93 _cleanup_udev_monitor_unref_ struct udev_monitor *monitor = NULL;

Completed in 2578 milliseconds