v9fs_file_lock(9)
welcome to v9fs_file_lock(9), straight outta the Kernel API Manual π this one is short, sweet, and lowkey iconic, so letβs go.
π NAME π
v9fs_file_lock β lock a file (or directory) πβ¨
β¨ SYNOPSIS β¨
int v9fs_file_lock (struct file *filp , int cmd , struct file_lock *fl );
π ARGUMENTS π
filpβ file to be locked π«Άcmdβ lock command πflβ file lock structure π
π¦ DESCRIPTION π¦
Bugs: this looks like a local only lock, we should extend into 9P by using open exclusive π
Thatβs the whole vibe, bestie. No cap, this is the description. π
πΈ SEE ALSO πΈ
- Kernel file
./fs/9p/vfs_file.cv9fs_file_open(9)π v9fs_file_lock_dotl(9)β¨v9fs_file_flock_dotl(9)π¦v9fs_file_read_iter(9)πv9fs_file_write_iter(9)β
okay bye bestie π
this cutie lives in ./fs/9p as v9fs_file_lock(9), dated October 2026 β 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