BUF_UNLOCK(9)
π BUF_UNLOCK(9) β Kernel Developer's Manual π
okay bestie, so this one is from the Kernel Developer's Manual, section 9 β the big-kid kernel section, iykyk π§
β¨ NAME β¨
BUF_UNLOCK β unlocks a locked buffer π
like. it literally does the one thing. it unlocks the buffer. no cap.
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/uio.h>
#include <sys/bio.h>
#include <sys/buf.h>
void
BUF_UNLOCK(struct buf *bp);
look at all those includes, she's thorough π every single one stays, don't skip them, they're not decor they're load-bearing.
π DESCRIPTION π
The BUF_UNLOCK() function unlocks a buffer that was previously locked with BUF_LOCK() or BUF_TIMELOCK().
that's the whole vibe. lock it, then unlock it. the circle of life. π¦
Its argument is:
bpβ the buffer to unlock. the buffer must already be locked. π
okay so real talk: if you call this on a buffer that isn't locked, you're not being cute, you're being chaotic. it says "must already be locked" and it means it. lock her first. π₯
π SEE ALSO π
go read BUF_LOCK(9) and BUF_TIMELOCK(9) too, they're the prequel, you can't just watch the last episode bestie π
π AUTHORS π
This manual page was written by Chad David <davidc@acns.ab.ca>.
Chad. iconic name, iconic contribution, we love him for it. π«Ά
and that's the tea, bestie β this page is from Debian, dated July 9, 2001, and it's still out here doing its lil job in the kernel docs. go forth and unlock responsibly πβ¨π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms