Lines Matching refs:monitor

102         sd_device_monitor *monitor;  member
155 sd_device_monitor *monitor; member
211 sd_device_monitor_unref(worker->monitor); in worker_free()
233 manager->monitor = sd_device_monitor_unref(manager->monitor); in manager_clear_for_worker()
280 .monitor = sd_device_monitor_ref(worker_monitor), in worker_new()
332 manager->monitor = sd_device_monitor_unref(manager->monitor); in manager_exit()
375 static void device_broadcast(sd_device_monitor *monitor, sd_device *dev, EventResult result) { in device_broadcast() argument
381 if (!monitor) in device_broadcast()
421 r = device_monitor_send_device(monitor, NULL, dev); in device_broadcast()
632 static int worker_device_monitor_handler(sd_device_monitor *monitor, sd_device *dev, void *userdata… in worker_device_monitor_handler() argument
648 device_broadcast(monitor, dev, r); in worker_device_monitor_handler()
662 static int worker_main(Manager *_manager, sd_device_monitor *monitor, sd_device *first_device) { in worker_main() argument
668 assert(monitor); in worker_main()
691 r = sd_device_monitor_attach_event(monitor, manager->event); in worker_main()
695 r = sd_device_monitor_start(monitor, worker_device_monitor_handler, manager); in worker_main()
699 …(void) sd_event_source_set_description(sd_device_monitor_get_event_source(monitor), "worker-device… in worker_main()
702 (void) worker_device_monitor_handler(monitor, dev, manager); in worker_main()
773 r = device_monitor_allow_unicast_sender(worker_monitor, manager->monitor); in worker_spawn()
821 r = device_monitor_send_device(manager->monitor, worker->monitor, event->dev); in event_run()
1182 static int on_uevent(sd_device_monitor *monitor, sd_device *dev, void *userdata) { in on_uevent() argument
1263 device_broadcast(manager->monitor, worker->event->dev, -ETIMEDOUT); in on_worker()
1591 device_broadcast(manager->monitor, dev, result); in on_sigchld()
1952 r = device_monitor_new_full(&manager->monitor, MONITOR_GROUP_KERNEL, fd_uevent); in manager_new()
1960 r = sd_device_monitor_set_receive_buffer_size(manager->monitor, 128 * 1024 * 1024); in manager_new()
1965 r = device_monitor_enable_receiving(manager->monitor); in manager_new()
2041 r = sd_device_monitor_attach_event(manager->monitor, manager->event); in main_loop()
2045 r = sd_device_monitor_start(manager->monitor, on_uevent, manager); in main_loop()
2049 …(void) sd_event_source_set_description(sd_device_monitor_get_event_source(manager->monitor), "devi… in main_loop()