PR_GET_TAGGED_ADDR_CTRL(2const) PR_GET_TAGGED_ADDR_CTRL(2const)

PR_GET_TAGGED_ADDR_CTRL - get the tagged address mode for the calling thread

Standard C library (libc-lc)

#include <linux/prctl.h>  /* Definition of PR_* constants */
#include <sys/prctl.h>
int prctl(PR_GET_TAGGED_ADDR_CTRL, 0L, 0L, 0L, 0L);

Returns the current tagged address mode for the calling thread.

The call returns a nonnegative value describing the current tagged address mode, encoded in the same way as the mode argument of PR_SET_TAGGED_ADDR_CTRL(2const).

On success, this call returns the nonnegative value described above. On error, -1 is returned, and errno is set to indicate the error.

This feature is disabled or unsupported by the kernel, or disabled via /proc/sys/abi/tagged_addr_disabled.

/proc/sys/abi/tagged_addr_disabled

Linux. arm64 only.

Linux 5.4 (arm64).

prctl(2), PR_SET_TAGGED_ADDR_CTRL(2const)

For more information, see the kernel source file Documentation/arm64/tagged-address-abi.rst.

2024-07-23 Linux man-pages 6.10