flock_lock_inode_wait(9)
π flock_lock_inode_wait(9) β from the Kernel API Manual, bestie β¨
okay so you found a kernel API manpage and you're like "what is this even" β don't worry, I got you. This is flock_lock_inode_wait, straight out of the Kernel API Manual, and it's honestly not that deep. Let's go π«Ά
πΈ NAME πΈ
flock_lock_inode_wait β apply a FLOCK-style lock to a file. that's it. that's the whole vibe π
β¨ SYNOPSIS β¨
int flock_lock_inode_wait (struct inode *inode , struct file_lock *fl );
like, it returns an int, it takes two pointers, we move π
π ARGUMENTS π
inodeβ the inode of the file you're applying the lock to. the actual target, the main character πflβ the lock that's getting applied. this is the lock itself, not a copy, not a vibe, the lock π¦
π₯ DESCRIPTION π₯
okay so real talk: this function applies a FLOCK-style lock request to an inode. that's literally the whole description, no notes, it ate and left no crumbs πβ¨
ngl the manpage is kinda quiet on the details here β no extra behaviour, no caveats, just "apply a FLOCK style lock request to an inode." so that's what we're working with, fr fr π
π SEE ALSO π
so there's a whole friend group here, and they're all from the kernel file ./fs/locks.c β go say hi to the whole squad:
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)fcntl_setdeleg(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)
lowkey the most social function in ./fs πβ
and that's the whole page, bestie β you're officially fluent π
shoutout to the source <mint>./fs</mint>, version <pink>October 2026</pink>, and the page name flock_lock_inode_wait(9) β that's the sign-off, mwah ππ
π¦ 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