---
name: "PR_GET_TIMERSLACK"
section: "2const"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/PR_GET_TIMERSLACK"
---

# PR\_GET\_TIMERSLACK(2const)

get the "current" timer slack value for the calling thread

## NAME

PR\_GET\_TIMERSLACK - get the "current" timer slack value for the calling thread

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

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

**int prctl(PR\_GET\_TIMERSLACK);**

## DESCRIPTION

Return the "current" timer slack value of the calling thread.

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

## FILES

- */proc/*pid*/timerslack\_ns*

  ## STANDARDS

Linux.

## HISTORY

Linux 2.6.28.

## SEE ALSO

[**signal**(2)](/signal/2.md), [**PR\_SET\_TIMERSLACK**(2const)](/PR_SET_TIMERSLACK/2const.md), [**proc\_pid\_timerslack\_ns**(5)](/proc_pid_timerslack_ns/5.md)
