Function binder_ndk_sys::ABinderProcess_setupPolling

source ยท
pub unsafe extern "C" fn ABinderProcess_setupPolling(
    fd: *mut c_int,
) -> binder_status_t
Expand description

This gives you an fd to wait on. Whenever data is available on the fd, ABinderProcess_handlePolledCommands can be called to handle binder queries. This is expected to be used in a single threaded process which waits on events from multiple different fds.

When using this, it is expected ABinderProcess_startThreadPool and ABinderProcess_joinThreadPool are not used.

\param fd out param corresponding to the binder domain opened in this process. \return STATUS_OK on success