pub fn sys_fallocate(
abi: &mut LinuxRiscv64Abi,
trapframe: &mut Trapframe,
) -> usizeExpand description
Linux sys_fallocate - Manipulate file space
This is used by glib/Wayland to extend shared memory file size. When mode is 0 (default), it extends the file to at least offset + len.
Arguments:
- fd: File descriptor
- mode: Operation mode (0 = allocate, FALLOC_FL_KEEP_SIZE, etc.)
- offset: Starting offset
- len: Length of the allocation
Returns:
- 0 on success
- negative errno on failure