#[unsafe(no_mangle)]pub unsafe extern "C" fn nrf_modem_os_mutex_init(
mutex: *mut *mut c_void,
) -> c_intExpand description
Initialize a mutex.
The function shall allocate and initialize a mutex and return its address as an output. If an address of an already allocated mutex is provided as an input, the allocation part is skipped and the mutex is only reinitialized.
Parameters:
- mutex – (inout) The address of the mutex.
Returns
- 0 on success, a negative errno otherwise.