1PMEMBLK_BSIZE(3)           PMDK Programmer's Manual           PMEMBLK_BSIZE(3)
2
3
4

NAME

6       pmemblk_bsize(), pmemblk_nblock() - check number of available blocks or
7       usable space in block memory pool
8

SYNOPSIS

10              #include <libpmemblk.h>
11
12              size_t pmemblk_bsize(PMEMblkpool *pbp);
13              size_t pmemblk_nblock(PMEMblkpool *pbp);
14

DESCRIPTION

16       The pmemblk_bsize() function returns the block size  of  the  specified
17       block  memory  pool,  that  is,  the value which was passed as bsize to
18       pmemblk_create().  pbp must be a block memory pool handle  as  returned
19       by pmemblk_open(3) or pmemblk_create(3).
20
21       The  pmemblk_nblock()  function  returns  the usable space in the block
22       memory pool.  pbp must be a block memory pool  handle  as  returned  by
23       pmemblk_open(3) or pmemblk_create(3).
24

RETURN VALUE

26       The  pmemblk_bsize()  function  returns the block size of the specified
27       block memory pool.
28
29       The pmemblk_nblock() function returns the usable  space  in  the  block
30       memory pool, expressed as the number of blocks available.
31

SEE ALSO

33       pmemblk_create(3), pmemblk_open(3), libpmemblk(7) and <https://pmem.io>
34
35
36
37PMDK - pmemblk API version 1.1    2022-05-24                  PMEMBLK_BSIZE(3)
Impressum