Lines Matching refs:output_fd
134 if (b->input_fd != b->output_fd) in bus_close_io_fds()
135 safe_close(b->output_fd); in bus_close_io_fds()
136 b->output_fd = b->input_fd = safe_close(b->input_fd); in bus_close_io_fds()
243 .output_fd = -1, in sd_bus_new()
274 _public_ int sd_bus_set_fd(sd_bus *bus, int input_fd, int output_fd) { in sd_bus_set_fd() argument
279 assert_return(output_fd >= 0, -EBADF); in sd_bus_set_fd()
283 bus->output_fd = output_fd; in sd_bus_set_fd()
1152 assert(b->output_fd >= 0); in bus_start_fd()
1157 (void) fd_get_path(b->output_fd, &po); in bus_start_fd()
1160 b->input_fd, b->output_fd, in bus_start_fd()
1172 if (b->input_fd != b->output_fd) { in bus_start_fd()
1173 r = fd_nonblock(b->output_fd, true); in bus_start_fd()
1177 r = fd_cloexec(b->output_fd, true); in bus_start_fd()
2493 assert_return(bus->input_fd == bus->output_fd, -EPERM); in sd_bus_get_fd()
3302 if (bus->output_fd == bus->input_fd) { in bus_poll()
3307 p[1].fd = bus->output_fd; in bus_poll()
3640 if (bus->output_fd != bus->input_fd) { in prepare_callback()
3722 if (bus->output_fd != bus->input_fd) { in bus_attach_io_events()
3723 assert(bus->output_fd >= 0); in bus_attach_io_events()
3726 …r = sd_event_add_io(bus->event, &bus->output_io_event_source, bus->output_fd, 0, io_callback, bus); in bus_attach_io_events()
3736 r = sd_event_source_set_io_fd(bus->output_io_event_source, bus->output_fd); in bus_attach_io_events()