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
- Copyright 2020, 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