gfs2_flock(9)
β¨ NAME β¨
okay so bestie, this is gfs2_flock(9) from the Kernel API Manual, and it's literally here to acquire/release a flock lock on a file π
π¦ SYNOPSIS π¦
int gfs2_flock (struct file *file , int cmd , struct file_lock *fl );
π ARGUMENTS π
fileβ the file pointer, aka the main character file you're locking πcmdβ either modify or retrieve lock state, possibly wait π«Άflβ the type and range of lock, no cap π₯
π RETURN π
It's giving errno πβ¨
π₯ SEE ALSO π₯
Kernel file ./fs/gfs2/file.c β and the whole squad is here, bestie:
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_lock(9)
cute lil sign-off bestie: source/version is ./fs/gfs2, date is October 2026, and the page is gfs2_flock(9) β 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