Function riot_sys::bf_get_unset

source ·
pub unsafe extern "C" fn bf_get_unset(
    field: *mut u8,
    len: size_t
) -> c_int
Expand description

@brief Atomically get the number of an unset bit and set it

This function can be used to record e.g., empty entries in an array.

@param[in,out] field The bitfield @param[in] len The number of bits in the bitfield to consider

@return number of bit that was set @return -1 if no bit was unset