BUF_RECURSED(9)
π BUF_RECURSED π
okay bestie so this is a page from the Kernel Developer's Manual, section 9, and it's all about one tiny little function called BUF_RECURSED β checks if the lock linked to the buffer is recursed. yes it's niche, no it's not boring, we're getting into it π«Ά
β¨ NAME β¨
BUF_RECURSED β checks if the lock linked to the buffer is recursed
literally that's the whole job. it checks. it tells you. iconic behaviour tbh π
πΈ SYNOPSIS πΈ
first you gotta invite the right headers to the function, no gatekeeping:
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/uio.h>
#include <sys/bio.h>
#include <sys/buf.h>
int
BUF_RECURSED(struct buf *bp);
see how it returns an int? that's your answer right there. ok moving on β¨
π¦ DESCRIPTION π¦
so the BUF_RECURSED() function checks if the lock linked to the given buffer is recursed, and returns 1 if the condition is true, 0 otherwise. that's it. that's the function. simple, clean, does exactly what it says on the tin fr fr π
its argument is:
bpβ the buffer linked to the lock. Seelockmgr_recursed(9)for details.
that's the whole argument list, one singular king, main character energy π
π SEE ALSO π
if you liked this page, you will LOVE these:
go read them, they're the friend group π«Ά
π AUTHORS π
this manual page was written by Attilio Rao <attilio@FreeBSD.org>. ty for your service, king π
k that's the whole page bestie, you now know everything there is to know about BUF_RECURSED, no cap π
and for the record β this one came from Debian, dated January 22, 2008, which is lowkey vintage of it. slay π β¨
π¦ 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) 2008 Attilio Rao <attilio@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms