PMEMBLK_NBLOCK(3)

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

✨ pmemblk_bsize(3) ✨

okay bestie, welcome to the PMDK Programmer's Manual πŸ’– this one's about pmemblk_bsize() and pmemblk_nblock() β€” both DEPRECATED btw, so like, noted, but we're still gonna learn it fr fr


🌸 NAME 🌸

pmemblk_bsize()(DEPRECATED), pmemblk_nblock()(DEPRECATED) β€” check number of available blocks or usable space in block memory pool

like... it's literally giving "how much room do we have in here" energy πŸŽ€


πŸ’… SYNOPSIS πŸ’…

#include <libpmemblk.h>

size_t pmemblk_bsize(PMEMblkpool *pbp);
size_t pmemblk_nblock(PMEMblkpool *pbp);

πŸ¦‹ DESCRIPTION πŸ¦‹

so the pmemblk_bsize() function returns the block size of the specified block memory pool, that is, the value which was passed as bsize to pmemblk_create(). and pbp must be a block memory pool handle as returned by pmemblk_open(3) or pmemblk_create(3). no substitutes, bestie, it's not gonna vibe check a random pointer for you πŸ™ˆ

the pmemblk_nblock() function returns the usable space in the block memory pool. same deal β€” pbp must be a block memory pool handle as returned by pmemblk_open(3) or pmemblk_create(3). πŸ‘‘


⭐ RETURN VALUE ⭐

  • the pmemblk_bsize() function returns the block size of the specified block memory pool. simple, iconic, no notes πŸ’–
  • the pmemblk_nblock() function returns the usable space in the block memory pool, expressed as the number of blocks available. so like, not bytes β€” blocks, okay? don't come for me πŸ”₯

🌈 SEE ALSO 🌈


and that's the whole page, bestie 🫢 remember these two are DEPRECATED, so if you're out here writing fresh code, maybe check what the cool kids are using instead. still, knowledge is knowledge, and you ate πŸ’…

mwah πŸ’‹ this was PMDK, dated 2023-05-31 β€” that's the version and the date, no cap. bye bestie, go read some more manpages 🌸✨

πŸ“¦ where this page comes from