gfs2_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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