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 π
pmem2_vm_reservation_new(3)β the one who actually makes the reservation, the main character of this whole story πlibpmem2(7)β the big library energy π- <https://pmem.io> β go touch grass (the website kind) π±
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
- 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