$manlookup

PR_GET_TAGGED_ADDR_CTRL

(2const)

get the tagged address mode for the calling thread

System callsmanpages-dev 6.9.1-1
#include <linux/prctl.h> /* Definition of PR_* constants */ #include <sys/prctl.h> int prctl(PR_GET_TAGGED_ADDR_CTRL, 0L, 0L, 0L, 0L);

LIBRARY

Standard C library (libc, -lc)

DESCRIPTION

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).

RETURN VALUE

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

ERRORS

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

FILES

/proc/sys/abi/tagged_addr_disabled

STANDARDS

Linux. arm64 only.

HISTORY

Linux 5.4 (arm64).

See also