Skip to main content

splinter_event_bus_init

Function splinter_event_bus_init 

Source
pub unsafe extern "C" fn splinter_event_bus_init() -> c_int
Expand description

@brief Initialize the event bus (owner process only).

Creates an eventfd, stores the owner PID and fd number in the shared header, and arms the process-local write fd used by all subsequent write operations. Call once per store lifetime, from the process that creates or governs the bus.

@return 0 on success, -1 on failure (errno set).