vfs_inode_has_locks(9)
β¨ NAME β¨
okay so bestie, welcome to the vfs_inode_has_locks(9) page from the Kernel API Manual β it's giving βone tiny locks vibe checkβ and we're obsessed π
vfs_inode_has_locks β are any file locks held on @inode? π
β¨ SYNOPSIS β¨
bool vfs_inode_has_locks (struct inode *inode );
β¨ ARGUMENTS β¨
inodeβ the inode to check for locks, no cap π¦
β¨ DESCRIPTION β¨
so this function returns true if there are any FL_POSIX or FL_FLOCK locks currently set on inode. that's it, that's the tea β periodt.
π SEE ALSO π
- Kernel file
./fs/locks.c 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)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)
okay that's the whole page! source/version: ./fs, date: October 2026, and the page is vfs_inode_has_locks(9) β bye bestie, 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