PR_GET_TAGGED_ADDR_CTRL(2const)

✨ PR_GET_TAGGED_ADDR_CTRL πŸ’…

okay bestie, so this is a page from PR_GET_TAGGED_ADDR_CTRL(2const) β€” like the const-flavored corner of the prctl(2) universe β€” and it's genuinely such a cute little call. it gets the tagged address mode for the calling thread. that's it. that's the whole job. no cap.


πŸŽ€ LIBRARY

Standard C library (libc, -lc) β€” the usual bestie, always there for you 🫢


🌸 SYNOPSIS

#include <linux/prctl.h>  /* Definition of PR_* constants */
#include <sys/prctl.h>

int prctl(PR_GET_TAGGED_ADDR_CTRL, 0L, 0L, 0L, 0L);

not me calling prctl() with four whole 0Ls just to ask a question 😭 iconic behavior honestly.


πŸ’– DESCRIPTION

so it returns the current tagged address mode for the calling thread. that's it. main character energy: the calling thread, nobody else. ✨

the call hands you back a nonnegative value describing the current tagged address mode, and that value is encoded exactly the same way as the mode argument of PR_SET_TAGGED_ADDR_CTRL(2const). so like, if you already know the setter, you already speak the getter's language. iykyk πŸ’…


πŸ‘‘ RETURN VALUE

on success, you get that nonnegative value we were just talking about. slay.

on error, -1 comes back and errno gets set to tell you what went wrong. rude, but informative. πŸ’€


πŸ¦‹ ERRORS

this feature is either disabled or just not supported by your kernel, or somebody went and disabled it via /proc/sys/abi/tagged_addr_disabled. three ways to get ghosted, fr fr. πŸ’”


πŸ“ FILES

  • /proc/sys/abi/tagged_addr_disabled

⭐ STANDARDS

Linux. and arm64 only β€” so if you're not on arm64, bestie, this whole thing is not for you. πŸ™ˆ


🌈 HISTORY

Linux 5.4 (arm64). vintage-ish, but make it arm64. πŸŽ€


πŸ”₯ SEE ALSO

and for the deep lore, go read the kernel source file Documentation/arm64/tagged-address-abi.rst. it's giving required reading, ngl. πŸ“šβœ¨


lowkey reminder: that whole mode encoding thing matters β€” the getter speaks the exact same dialect as the setter's mode argument, so always go read PR_SET_TAGGED_ADDR_CTRL(2const) to decode whatever you get back. 🫢

okay that's the whole page, bestie, we ate and left no crumbs πŸ’…πŸ“

this was Linux man-pages 6.20, dated 2026-02-08, for PR_GET_TAGGED_ADDR_CTRL(2const) β€” mwah, go tag some addresses responsibly πŸ˜­πŸ’–

πŸ“¦ 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