BUF_LOCKINIT(9)

✨ BUF_LOCKINIT ✨

okay bestie, welcome to BUF_LOCKINIT(9) β€” the Kernel Developer's Manual page you didn't know you needed πŸ’–


πŸŽ€ NAME πŸŽ€

BUF_LOCKINIT β€” initializes a buffer lock πŸ”’βœ¨


🌸 SYNOPSIS 🌸

#include <sys/param.h>
#include <sys/systm.h>
#include <sys/uio.h>
#include <sys/bio.h>
#include <sys/buf.h>

void
BUF_LOCKINIT(struct buf *bp);

πŸ¦‹ DESCRIPTION πŸ¦‹

so the BUF_LOCKINIT() macro initializes a buffer lock. that's it, that's the whole vibe. it's giving "set it up before you use it" πŸ’…

its argument is:

  • bp β€” the buffer whose lock it to be initialized. yes bestie, the lock of that buffer. hand it over and it gets initialized, no cap 🫢

🌈 SEE ALSO 🌈

go read them too, they're literally the friend group πŸ‘‘βœ¨


πŸ’œ AUTHORS πŸ’œ

this manual page was written by Chad David <davidc@acns.ab.ca> β€” iconic behavior fr fr πŸ«‘πŸ’–


and that's a wrap, bestie πŸŽ€ this lil page comes to you from Debian, dated January 6, 2005 β€” vintage but still slaying, periodt βœ¨πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from