PR_GET_TAGGED_ADDR_CTRL(2const)

PR_GET_TAGGED_ADDR_CTRL2const

Get the tagged address mode for the calling thread

Usage

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

Overview

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

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

Standards

Linux. arm64 only.

History

Linux 5.4 (arm64).

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.