mmap_unmap(3)
β¨ mmap_unmap β¨
okay so this is the manual page for mmap_unmap, from the Library Functions Manual bestie π like it lives in section 3 of the man pages, the library functions girlies π
π NAME π
mmap_unmap β unmap an existing memory mapping
yep that's the whole job. it unmaps. it's giving cleanup era π§Ήβ¨
π¦ SYNTAX π¦
ok so first you gotta pull in the header, like:
#include <libowfat/mmap.h>
and then the actual function, she's short and sweet:
int mmap_unmap(char* mapped,size_t maplen);
no cap, that's it. mapped is your pointer, maplen is your size, and she returns an int π
πΈ DESCRIPTION πΈ
okay so listen π«Ά mmap_unmap removes a memory mapping. like, it takes that mapping you made and it's like "ok bye bestie" π
but here's the tea β it only handles mappings that were established by one of these three:
mmap_readmmap_privatemmap_shared
so if you made your mapping with one of those, mmap_unmap is your girl π if you didn't... that's a different conversation, and this page is not having it π
π SEE ALSO π
go read these next, they're iconic fr fr:
lowkey important: this page comes straight out of the Library Functions Manual, and it's filed undermmap_unmap(3)β that's the section3girlies, library functions only π
and that's the whole page bestie, thanks for coming to my ted talk, go free your memory ππβ¨ slay, periodt π
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms