⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

shm_truncate

Function shm_truncate 

Source
pub fn shm_truncate(name: &str, size: usize) -> KernelResult<()>
Expand description

Set the size of a shared memory object (analogous to ftruncate).

Allocates (or reallocates) the physical backing memory. Existing mappings are NOT updated; callers must re-map after truncating.