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.


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) πŸ§šπŸ’–