Debian Codegraph @

upstream/debian-unstable/man2/PR_GET_TSC.2const

raw
1 .\" Copyright 2008, Erik Bosman <[email protected]>
2 .\" Copyright 2008-2015, Michael Kerrisk <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\"
7 .TH PR_GET_TSC 2const 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 PR_GET_TSC
10 \-
11 get wether the timestamp counter can be read
12 .SH LIBRARY
13 Standard C library
14 .RI ( libc ,\~ \-lc )
15 .SH SYNOPSIS
16 .nf
17 .BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */"
18 .B #include <sys/prctl.h>
19 .P
20 .BI "int prctl(PR_GET_TSC, int *" flag );
21 .fi
22 .SH DESCRIPTION
23 Return the state of the flag determining whether the timestamp counter
24 can be read,
25 in the location pointed to by
26 .IR flag .
27 .SH RETURN VALUE
28 On success,
29 0 is returned.
30 On error, \-1 is returned, and
31 .I errno
32 is set to indicate the error.
33 .SH ERRORS
34 .TP
35 .B EFAULT
36 .I flag
37 is an invalid address.
38 .SH STANDARDS
39 Linux.
40 x86 only.
41 .SH HISTORY
42 Linux 2.6.26 (x86).
43 .SH SEE ALSO
44 .BR prctl (2),
45 .BR PR_SET_TSC (2const)