PMEM2_MAP_GET_STORE_GRANULARITY(3)
π pmem2_map_get_store_granularity() β bestie edition π
okay so this one lives in the PMDK Programmer's Manual, and it's a lil function that reads the effective mapping granularity. yes. that's the whole job. she's tiny, she's powerful, she's iconic. β¨
πΈ NAME πΈ
pmem2_map_get_store_granularity() β reads effective mapping granularity
π SYNOPSIS π
#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);
like. look at her. so clean. π
π¦ DESCRIPTION π¦
The pmem2_map_get_store_granularity() function reads the granularity of the created mapping, fr fr.
The map parameter points to the structure describing a mapping that was created using the pmem2_map_new(3) function. so like, if you didn't make your map with that, bestie, we're not talking about you. π
The concept of the granularity is described in libpmem2(7) β go read it, it's giving required reading. π
π RETURN VALUE π
The pmem2_map_get_store_granularity() function returns a granularity of the mapped area. that's it. that's the tea. π
β SEE ALSO β
π no cap: this is the PMDK Programmer's Manual, dated 2025-07-24, and that's the whole page. you ate. go map something. π«ΆπΈπ
π¦ where this page comes from
- fedora 43: libpmem2-devel 2.1.0-4.fc43 Β· BSD-3-Clause
- π the page's license: BSD-3-Clause
- Copyright 2020, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms