summaryrefslogtreecommitdiffstats
path: root/man2/arch_prctl.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/arch_prctl.2')
-rw-r--r--man2/arch_prctl.222
1 files changed, 11 insertions, 11 deletions
diff --git a/man2/arch_prctl.2 b/man2/arch_prctl.2
index bbb85866c..ca730c1c8 100644
--- a/man2/arch_prctl.2
+++ b/man2/arch_prctl.2
@@ -22,7 +22,7 @@ Standard C library
glibc provides no wrapper for
.BR arch_prctl (),
necessitating the use of
-.BR syscall (2).
+.MR syscall 2 .
.SH DESCRIPTION
.BR arch_prctl ()
sets architecture-specific process or thread state.
@@ -63,13 +63,13 @@ hardware would have produced (e.g., in a paravirtualization setting).
The
.B ARCH_SET_CPUID
setting is preserved across
-.BR fork (2)
+.MR fork 2
and
-.BR clone (2)
+.MR clone 2
but reset to the default (i.e.,
.I cpuid
enabled) on
-.BR execve (2).
+.MR execve 2 .
.TP
.BR ARCH_GET_CPUID " (since Linux 4.12)"
Return the setting of the flag manipulated by
@@ -147,10 +147,10 @@ Context switches for 64-bit segment bases are rather expensive.
As an optimization, if a 32-bit TLS base address is used,
.BR arch_prctl ()
may use a real TLS entry as if
-.BR set_thread_area (2)
+.MR set_thread_area 2
had been called, instead of manipulating the segment base register directly.
Memory in the first 2\ GB of address space can be allocated by using
-.BR mmap (2)
+.MR mmap 2
with the
.B MAP_32BIT
flag.
@@ -158,7 +158,7 @@ flag.
Because of the aforementioned optimization, using
.BR arch_prctl ()
and
-.BR set_thread_area (2)
+.MR set_thread_area 2
in the same thread is dangerous, as they may overwrite each other's
TLS entries.
.P
@@ -168,9 +168,9 @@ Programs that use
.B ARCH_SET_FS
directly are very likely to crash.
.SH SEE ALSO
-.BR mmap (2),
-.BR modify_ldt (2),
-.BR prctl (2),
-.BR set_thread_area (2)
+.MR mmap 2 ,
+.MR modify_ldt 2 ,
+.MR prctl 2 ,
+.MR set_thread_area 2
.P
AMD X86-64 Programmer's manual