Lines Matching refs:result

375 static void device_broadcast(sd_device_monitor *monitor, sd_device *dev, EventResult result) {  in device_broadcast()  argument
384 if (result != EVENT_RESULT_SUCCESS) { in device_broadcast()
387 switch (result) { in device_broadcast()
391 (void) device_add_propertyf(dev, "UDEV_WORKER_ERRNO", "%i", -result); in device_broadcast()
393 str = errno_to_name(result); in device_broadcast()
399 …(void) device_add_propertyf(dev, "UDEV_WORKER_EXIT_STATUS", "%i", result - EVENT_RESULT_EXIT_STATU… in device_broadcast()
409 … (void) device_add_propertyf(dev, "UDEV_WORKER_SIGNAL", "%i", result - EVENT_RESULT_SIGNAL_BASE); in device_broadcast()
411 str = signal_to_string(result - EVENT_RESULT_SIGNAL_BASE); in device_broadcast()
417 log_device_warning(dev, "Unknown event result \"%i\", ignoring.", result); in device_broadcast()
427 static int worker_send_result(Manager *manager, EventResult result) { in worker_send_result() argument
431 return loop_write(manager->worker_watch[WRITE_END], &result, sizeof(result), false); in worker_send_result()
1212 EventResult result; in on_worker() local
1213 struct iovec iovec = IOVEC_MAKE(&result, sizeof(result)); in on_worker()
1236 if (size != sizeof(result)) { in on_worker()
1261 if (result == EVENT_RESULT_TRY_AGAIN && in on_worker()
1559 EventResult result; in on_sigchld() local
1571 result = EVENT_RESULT_EXIT_STATUS_BASE + si->si_status; in on_sigchld()
1578 result = EVENT_RESULT_SIGNAL_BASE + si->si_status; in on_sigchld()
1585 if (result != EVENT_RESULT_SUCCESS && dev) { in on_sigchld()
1591 device_broadcast(manager->monitor, dev, result); in on_sigchld()