gfs2_lock(9)
β¨ NAME β¨
gfs2_lock β acquire/release a posix lock on a file. Okay bestie, this page is from the Kernel API Manual, and the main character is literally gfs2_lock. π
πΈ SYNOPSIS πΈ
int gfs2_lock (struct file *file , int cmd , struct file_lock *fl );
π ARGUMENTS π
fileβ the file pointer π«Άcmdβ either modify or retrieve lock state, possibly wait β³flβ type and range of lock π
π RETURN π
errno β that's the return, bestie. periodt. β¨
π¦ SEE ALSO π¦
Kernel file ./fs/gfs2/file.c β and the whole friend group:
gfs2_llseek(9)gfs2_readdir(9)do_gfs2_set_flags(9)gfs2_size_hint(9)gfs2_allocate_folio_backing(9)gfs2_page_mkwrite(9)gfs2_mmap(9)gfs2_open_common(9)gfs2_open(9)gfs2_release(9)gfs2_fsync(9)gfs2_file_write_iter(9)calc_max_reserv(9)gfs2_flock(9)
mwah π this cute little page is from source/version ./fs/gfs2, dated October 2026, and yes the title is gfs2_lock(9) β bye bestie, slay responsibly π«Άβ¨
π¦ 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