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.