MUNLOCK(3POSIX)
β¨ MUNLOCK(3POSIX) β¨
okay bestie, welcome to the POSIX Programmer's Manual π this lil page lives in section 3POSIX, and we're gonna talk about munlock β the girl who unlocks a range of process address space. yes ma'am. let's get into it π«Ά
πΈ PROLOG πΈ
okay so first things first, real talk: this manual page is part of the POSIX Programmer's Manual. but here's the tea β β the Linux implementation of this interface may differ from what's written here (so like, pls go consult the corresponding Linux manual page if you wanna know what Linux actually does, bestie). or... plot twist π the interface may not even be implemented on Linux at all. vibe check failed fr fr.
π NAME π
munlock β unlock a range of process address space π
like, it's giving "let go of that memory region, queen." periodt.
π SYNOPSIS π
#include <sys/mman.h>
int munlock(const void *addr, size_t len);
that's it. that's the whole signature. two args, one int return, no notes. iconic. β¨
π¦ DESCRIPTION π¦
okay so for the actual deets? refer to mlock(). yeah, that's the whole description. this page is lowkey just a "see also" in disguise π. go read mlock() bestie, it's all there.
π COPYRIGHT π
ngl this part is the serious bit, so listen up π«Ά
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
π reminder: those are the referee documents. if something looks off, the original standard wins, not this page. no cap.
and that's the whole page, bestie!! π this one came to you courtesy of IEEE/The Open Group, dated 2017 β mwah π go unlock some memory (or don't, read mlock() first, iykyk) π§π
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms