.\" Automatically generated by Pandoc 2.0.6 .\" .TH "PMEM2_MAP_GET_STORE_GRANULARITY" "3" "2022-08-25" "PMDK - pmem2 API version 1.0" "PMDK Programmer's Manual" .hy .\" SPDX-License-Identifier: BSD-3-Clause .\" Copyright 2020, Intel Corporation .SH NAME .PP \f[B]pmem2_map_get_store_granularity\f[]() \- reads effective mapping granularity .SH SYNOPSIS .IP .nf \f[C] #include\ 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); \f[] .fi .SH DESCRIPTION .PP The \f[B]pmem2_map_get_store_granularity\f[]() function reads granularity of the created mapping. The \f[I]map\f[] parameter points to the structure describing mapping created using the \f[B]pmem2_map_new\f[](3) function. Concept of the granularity is described in \f[B]libpmem2\f[](7). .SH RETURN VALUE .PP The \f[B]pmem2_map_get_store_granularity\f[]() function returns a granularity of the mapped area. .SH SEE ALSO .PP \f[B]pmem2_map_new\f[](3), \f[B]libpmem2\f[](7) and \f[B]\f[]