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