sd_bus_get_fd systemd sd_bus_get_fd 3 sd_bus_get_fd Get the file descriptor connected to the message bus #include <systemd/sd-bus.h> int sd_bus_get_fd sd_bus *bus Description sd_bus_get_fd() returns the file descriptor used to communicate with the message bus. This descriptor can be used with select3, poll3, or similar functions to wait for incoming messages. If the bus was created with the sd_bus_set_fd3 function, then the input_fd used in that call is returned. Return Value Returns the file descriptor used for incoming messages from the message bus. See Also systemd1, sd-bus3, sd_bus_set_fd3,