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

fcntl_setlk

Function fcntl_setlk 

Source
pub fn fcntl_setlk(inode: u64, lock: &FileLock) -> Result<(), KernelError>
Expand description

Set a byte-range lock (F_SETLK semantics – non-blocking).

If lock.lock_type is F_UNLCK, removes matching locks from the table. Otherwise, checks for conflicts and inserts the lock if none exist.