pmem2_map_get_store_granularity3
Reads effective mapping granularity
Usage
-
#include <libpmem2.h>enum pmem2_granularity {PMEM2_GRANULARITY_BYTE,PMEM2_GRANULARITY_CACHE_LINE,PMEM2_GRANULARITY_PAGE,};enum pmem2_granularity pmem2_map_get_store_granularity(struct pmem2_map *map);
Overview
The pmem2_map_get_store_granularity() function reads granularity of the created mapping. The map parameter points to the structure describing mapping created using the pmem2_map_new(3) function. Concept of the granularity is described in libpmem2(7).
Return value
The pmem2_map_get_store_granularity() function returns a granularity of the mapped area.
Releases
3 releases since Debian 11 (Bullseye); the text changed 2 times.