PR_SVE_GET_VL(2const)

PR_SVE_GET_VL2const

Get the thread's sve vector length

Usage

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

int prctl(PR_SVE_GET_VL);

Library

Standard C library (libc, -lc)

Overview

Get the thread's current SVE vector length configuration.

This operation returns a nonnegative value that describes the current configuration. The bits corresponding to PR_SVE_VL_LEN_MASK contain the currently configured vector length in bytes. The bit corresponding to PR_SVE_VL_INHERIT indicates whether the vector length will be inherited across execve(2).

Return value

On success, PR_SVE_GET_VL, return the nonnegative values described above. On error, -1 is returned, and errno is set to indicate the error.

Errors

EINVAL

SVE is not available on this platform.

Caveats

There is no way to determine whether there is a pending vector length change that has not yet taken effect.

Releases

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

  1. 13
  2. Arch

Standards

Linux. arm64 only.

History

Linux 4.15 (arm64).

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