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 errno is 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms