.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "" "" "2023-05-31" "PMDK - " "PMDK Programmer's Manual" .hy .\" SPDX-License-Identifier: BSD-3-Clause .\" Copyright 2017-2023, Intel Corporation .SH NAME .PP \f[B]pmemblk_bsize\f[R]()(DEPRECATED), \f[B]pmemblk_nblock\f[R]()(DEPRECATED) - check number of available blocks or usable space in block memory pool .SH SYNOPSIS .IP .nf \f[C] #include size_t pmemblk_bsize(PMEMblkpool *pbp); size_t pmemblk_nblock(PMEMblkpool *pbp); \f[R] .fi .SH DESCRIPTION .PP The \f[B]pmemblk_bsize\f[R]() function returns the block size of the specified block memory pool, that is, the value which was passed as \f[I]bsize\f[R] to \f[B]pmemblk_create\f[R](). \f[I]pbp\f[R] must be a block memory pool handle as returned by \f[B]pmemblk_open\f[R](3) or \f[B]pmemblk_create\f[R](3). .PP The \f[B]pmemblk_nblock\f[R]() function returns the usable space in the block memory pool. \f[I]pbp\f[R] must be a block memory pool handle as returned by \f[B]pmemblk_open\f[R](3) or \f[B]pmemblk_create\f[R](3). .SH RETURN VALUE .PP The \f[B]pmemblk_bsize\f[R]() function returns the block size of the specified block memory pool. .PP The \f[B]pmemblk_nblock\f[R]() function returns the usable space in the block memory pool, expressed as the number of blocks available. .SH SEE ALSO .PP \f[B]pmemblk_create\f[R](3), \f[B]pmemblk_open\f[R](3), \f[B]libpmemblk\f[R](7) and \f[B]\f[R]