1SD_BUS_GET_FD(3) sd_bus_get_fd SD_BUS_GET_FD(3)
2
3
4
6 sd_bus_get_fd - Get the file descriptor connected to the message bus
7
9 #include <systemd/sd-bus.h>
10
11 int sd_bus_get_fd(sd_bus *bus);
12
14 sd_bus_get_fd() returns the file descriptor used to communicate with
15 the message bus. This descriptor can be used with select(3), poll(3),
16 or similar functions to wait for incoming messages.
17
18 If the bus was created with the sd_bus_set_fd(3) function, then the
19 input_fd used in that call is returned.
20
22 Returns the file descriptor used for incoming messages from the message
23 bus.
24
26 systemd(1), sd-bus(3), sd_bus_set_fd(3),
27
28
29
30systemd 239 SD_BUS_GET_FD(3)