fcntl_setdeleg(9)
π NAME π
okay so welcome to the fcntl_setdeleg(9) page from the Kernel API Manual, bestie π β this one is all about fcntl_setdeleg, and what it does is sets a delegation on an open file. slay.
β¨ SYNOPSIS β¨
the whole signature is giving:
int fcntl_setdeleg (unsigned int fd , struct file *filp , struct
delegation *deleg );
π¦ ARGUMENTS π¦
fdβ the open file descriptor, aka the little number bestie uses to point at the file πfilpβ the file pointer, literally thestruct file *in the chat πΈdelegβ the delegation request from userland, coming in hot from userspace π
π DESCRIPTION π
Call this fcntl to establish a delegation on the file. no cap, that's the whole main-character move β¨
okay but important, bestie π«Ά β you also need to call F_SETSIG to receive a signal when the lease is broken. don't skip that part, iykyk π
π SEE ALSO π
Kernel file ./fs/locks.c β literally the lock girlie cinematic universe π:
locks_owner_has_blockers(9)lease_open_conflict(9)locks_delete_block(9)posix_lock_file(9)posix_lock_inode_wait(9)inode_lease_ignore_mask(9)__break_lease(9)lease_get_mtime(9)__fcntl_getlease(9)generic_setlease(9)vfs_setlease(9)fcntl_setlease(9)flock_lock_inode_wait(9)locks_lock_inode_wait(9)sys_flock(9)vfs_test_lock(9)locks_translate_pid(9)vfs_lock_file(9)vfs_cancel_lock(9)vfs_inode_has_locks(9)
mwah π β source/version: ./fs; date: October 2026. periodt π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms