PR_GET_UNALIGN(2const)
β¨ PR_GET_UNALIGN(2const) β¨
okay bestie, so this is a page from the Linux man-pages, section 2const (that's the "constants and stuff that go with prctl(2)" corner of the manual, iykyk) π
sit down, we're doing unaligned access control bits today and honestly? it's giving lowkey iconic.
π NAME π
PR_GET_UNALIGN β get unaligned access control bits
π LIBRARY π
Standard C library (libc, -lc) π«Ά
πΈ SYNOPSIS πΈ
#include <linux/prctl.h> /* Definition of PR_* constants */
#include <sys/prctl.h>
int prctl(PR_GET_UNALIGN, unsigned int *bits);
π DESCRIPTION π
okay so real talk: this one pulls the unaligned access control bits out for you and drops them in the place that bits is pointing at. that's it. that's the whole function. it looks at where bits points, and the bits land right there. no cap. β¨
π₯ RETURN VALUE π₯
- on success? 0 gets returned, slay π
- on error? -1 gets returned, and
errnois set to tell you what went wrong (the drama, tbh)
π ERRORS π
EFAULTβ bits is an invalid address. π« not a valid place to write, sorry bestie, that pointer is not it.
π STANDARDS π
Linux. that's the standard. we're a Linux girlie here, periodt. π§
π HISTORY π
see PR_SET_UNALIGN(2const) β that's where the lore lives, go read it. π
β SEE ALSO β
and that's a wrap, bestie π this absolute bop of a page came from Linux man-pages 6.20, dated 2026-02-08, and it'll always be PR_GET_UNALIGN(2const) to me π¦ stay unaligned, stay iconic, mwah π
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: Linux-man-pages-copyleft
- Copyright 2006-2015, Michael Kerrisk <mtk.manpages@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms