sys_bitarray_test_and_set_bit

Function sys_bitarray_test_and_set_bit 

Source
pub unsafe extern "C" fn sys_bitarray_test_and_set_bit(
    bitarray: *mut sys_bitarray,
    bit: usize,
    prev_val: *mut i32,
) -> i32
Expand description

Test the bit and set it

@param[in] bitarray Bitarray struct @param[in] bit The bit to be tested and set @param[out] prev_val Previous value of the bit (0 or 1)

@retval 0 Operation successful @retval -EINVAL Invalid argument (e.g. bit to test exceeds the number of bits in bit array, etc.)