PMEMLOG_NBYTE(3)

πŸ“¦
version 1.13.1 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

pmemlog_nbyte() (DEPRECATED) β€” the little function that checks how much usable space is chillin' in your log pool πŸ’–

okay so real talk first, bestie: this one is DEPRECATED, which is the polite Unix way of saying "she's retired, don't build your whole personality around her." But the lore still matters, so let's go πŸ‘‘


🌸 SYNOPSIS 🌸

#include <libpmemlog.h>

size_t pmemlog_nbyte(PMEMlogpool *plp);

πŸ¦‹ DESCRIPTION πŸ¦‹

So pmemlog_nbyte() checks the amount of usable space in the log plp. That's it. That's the whole job. She's a one-trick pony and honestly? Iconic for it πŸ’…

Here's the tea though β€” this function is meant to be used on a log to figure out how much usable space is actually available after libpmemlog(7) has already added its metadata to the memory pool. Because the metadata takes up room, babes. The pool isn't all yours. She took her cut first, and pmemlog_nbyte() is the one who tells you what's left in the pot πŸ“


πŸŽ€ RETURN VALUE πŸŽ€

The pmemlog_nbyte() function returns the amount of usable space in the log plp. That's the number, that's the vibe, no notes ✨


🌈 SEE ALSO 🌈


and that's a wrap on the PMDK Programmer's Manual, section 3, dated 2023-05-31 β€” mwah, go touch some persistent memory, bestie πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from