pub unsafe extern "C" fn sys_bitarray_free(
bitarray: *mut sys_bitarray,
num_bits: usize,
offset: usize,
) -> i32Expand description
Free bits in a bit array
This marks the number of bits (@p num_bits) starting from @p offset as no longer allocated.
@param bitarray Bitarray struct @param num_bits Number of bits to free @param offset Starting bit position to free
@retval 0 Free is successful @retval -EINVAL Invalid argument (e.g. try to free more bits than the bitarray has, trying to free 0 bits, etc.) @retval -EFAULT The bits in the indicated region are not all allocated.