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

fcntl_getlk

Function fcntl_getlk 

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

Query for a conflicting lock (F_GETLK semantics).

If a lock exists that would conflict with the described lock, returns Some(conflicting_lock). Otherwise returns None, indicating the lock could be placed.