1PMEMCTO_MALLOC_USABLE_SIZE(3P)MDK Programmer's ManuaPlMEMCTO_MALLOC_USABLE_SIZE(3)
2
3
4

NAME

6       pmemcto_malloc_usable_size  -  obtain size of block of memory allocated
7       from pool
8

SYNOPSIS

10              #include <libpmemcto.h>
11
12              size_t pmemcto_malloc_usable_size(PMEMctopool *pcp, void *ptr);
13

DESCRIPTION

15       The pmemcto_malloc_usable_size() function provides the  same  semantics
16       as  malloc_usable_size(3),  but operates on the memory pool pcp instead
17       of the process heap supplied by the system.  It returns the  number  of
18       usable  bytes  in  the  block  of allocated memory pointed to by ptr, a
19       pointer to a block of memory allocated by pmemcto_malloc(3) or a relat‐
20       ed function.
21

RETURN VALUE

23       The  pmemcto_malloc_usable_size() function returns the number of usable
24       bytes in the block of allocated memory pointed to by ptr.   If  ptr  is
25       NULL, 0 is returned.
26

SEE ALSO

28       jemalloc(3), malloc(3), malloc_usable_size(3), pmemcto_malloc(3), libp‐
29       memcto(7) and <http://pmem.io>
30
31
32
33PMDK - libpmemcto API version 1.0 2018-07-20     PMEMCTO_MALLOC_USABLE_SIZE(3)
Impressum