PMEM2_VM_RESERVATION_GET_ADDRESS(3)

πŸ’– pmem2_vm_reservation_get_address() πŸ’–

okay bestie, welcome to the PMDK Programmer's Manual ✨ this one's short and sweet and honestly it's giving "one job, does it perfectly" energy πŸŽ€


🌸 NAME 🌸

pmem2_vm_reservation_get_address() β€” reads address of the virtual memory reservation

like. that's it. that's the whole job. she reads the address. she serves πŸ’…


✨ SYNOPSIS ✨

#include <libpmem2.h>

void *pmem2_vm_reservation_get_address(struct pmem2_vm_reservation *rsv);

look at her. one include, one function, zero drama πŸ¦‹


🫢 DESCRIPTION 🫢

so the pmem2_vm_reservation_get_address() function reads the address of the virtual memory reservation you already created πŸ“ that's the whole vibe. it doesn't make anything, it doesn't change anything, it just tells you where the thing lives.

the rsv parameter points to the structure describing the reservation β€” and that reservation was made earlier with the pmem2_vm_reservation_new(3) function. so if you haven't called that yet, bestie, there is literally nothing to read 😭 go make your reservation first, then come back. the way that this function is just a little peek at your own setup... obsessed πŸͺž


πŸ‘‘ RETURN VALUE πŸ‘‘

pmem2_vm_reservation_get_address() returns a pointer to the virtual memory reservation area 🎯 that's your address, right there, handed to you. slay. no cap, that's the entire return value situation.


🌈 SEE ALSO 🌈


fr fr, that's the whole page. tiny function, big usefulness. periodt πŸ’…βœ¨

PMDK β€” 2025-07-24 πŸ—“οΈ bestie this page is brought to you by the PMDK crew, stamped and dated and everything πŸŽ€ mwah, go read the rest of the manpages, iykyk πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from