]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/__ppc_yield.3
dlinfo.3: ATTRIBUTES: Note function that is thread-safe
[thirdparty/man-pages.git] / man3 / __ppc_yield.3
1 .\" Copyright (c) 2015, IBM Corporation.
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of
9 .\" this manual under the conditions for verbatim copying, provided that
10 .\" the entire resulting derived work is distributed under the terms of
11 .\" a permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume.
15 .\" no responsibility for errors or omissions, or for damages resulting.
16 .\" from the use of the information contained herein. The author(s) may.
17 .\" not have taken the same level of care in the production of this.
18 .\" manual, which is licensed free of charge, as they might when working.
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .TH __PPC_YIELD 3 2015-08-05 "GNU C Library" "Linux Programmer's\
26 Manual"
27 .SH NAME
28 __ppc_yield, __ppc_mdoio, __ppc_mdoom \-
29 Hint the processor to release shared resources
30 .SH SYNOPSIS
31 .B #include <sys/platform/ppc.h>
32 .sp
33 .B void __ppc_yield(void);
34 .br
35 .B void __ppc_mdoio(void);
36 .br
37 .B void __ppc_mdoom(void);
38 .SH DESCRIPTION
39 These functions
40 provide hints about the usage of resources that are shared with other
41 processors on the Power architecture.
42 They can be used, for example, if a program waiting on a lock intends
43 to divert the shared resources to be used by other processors.
44 .P
45 .BR __ppc_yield ()
46 provides a hint that performance will probably be improved if shared
47 resources dedicated to the executing processor are released for use by
48 other processors.
49 .P
50 .BR __ppc_mdoio ()
51 provides a hint that performance will probably be improved if shared
52 resources dedicated to the executing processor are released until all
53 outstanding storage accesses to caching-inhibited storage have been
54 completed.
55 .P
56 .BR __ppc_mdoom ()
57 provides a hint that performance will probably be improved if shared
58 resources dedicated to the executing processor are released until all
59 outstanding storage accesses to cacheable storage for which the data
60 is not in the cache have been completed.
61 .SH VERSIONS
62 These functions first appeared in glibc in version 2.18.
63 .SH ATTRIBUTES
64 For an explanation of the terms used in this section, see
65 .BR attributes (7).
66 .ad l
67 .TS
68 allbox;
69 lbw29 lb lb
70 l l l.
71 Interface Attribute Value
72 T{
73 .BR __ppc_yield (),
74 .BR __ppc_mdoio (),
75 .BR __ppc_mdoom ()
76 T} Thread safety MT-Safe
77 .TE
78 .ad
79 .SH CONFORMING TO
80 These functions are nonstandard GNU extensions.
81 .SH SEE ALSO
82 .BR __ppc_set_ppr_med (3)
83
84 .IR "Power ISA, Book\ II - Section\ 3.2 (""or"" architecture)"