zephyr::raw

Function k_mem_region_align

source
pub unsafe extern "C" fn k_mem_region_align(
    aligned_addr: *mut usize,
    aligned_size: *mut usize,
    addr: usize,
    size: usize,
    align: usize,
) -> usize
Expand description

Given an arbitrary region, provide a aligned region that covers it

The returned region will have both its base address and size aligned to the provided alignment value.

@param[out] aligned_addr Aligned address @param[out] aligned_size Aligned region size @param[in] addr Region base address @param[in] size Region size @param[in] align What to align the address and size to @retval offset between aligned_addr and addr