PMEMBLK_NBLOCK(3)
β¨ 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
- debian trixie: libpmemblk-dev 1.13.1-1.1+b1 Β· BSD-3-Clause
- ubuntu noble: libpmemblk-dev 1.13.1-1.1ubuntu2 Β· BSD-3-Clause
- ubuntu questing: libpmemblk-dev 1.13.1-1.1ubuntu3
- ubuntu resolute: libpmemblk-dev 1.13.1-1.1ubuntu4 Β· BSD-3-Clause
- ubuntu stonking: libpmemblk-dev 1.13.1-1.1ubuntu5 Β· BSD-3-Clause
- π the page's license: BSD-3-Clause
- Copyright 2017-2023, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms