]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/__ppc_yield.3
__ppc_get_timebase.3, __ppc_yield.3: Remove incorrect text
[thirdparty/man-pages.git] / man3 / __ppc_yield.3
CommitLineData
36b53105
GG
1.\" Copyright (c) 2015, IBM Corporation.
2.\"
5fbde956 3.\" SPDX-License-Identifier: Linux-man-pages-copyleft
36b53105 4.\"
45186a5d 5.TH __PPC_YIELD 3 2021-03-22 "Linux man-pages (unreleased)"
36b53105
GG
6.SH NAME
7__ppc_yield, __ppc_mdoio, __ppc_mdoom \-
8Hint the processor to release shared resources
2e8ff57c
AC
9.SH LIBRARY
10Standard C library
8fc3b2cf 11.RI ( libc ", " \-lc )
36b53105 12.SH SYNOPSIS
c7db92b9 13.nf
36b53105 14.B #include <sys/platform/ppc.h>
68e4db0a 15.PP
36b53105 16.B void __ppc_yield(void);
36b53105 17.B void __ppc_mdoio(void);
36b53105 18.B void __ppc_mdoom(void);
c7db92b9 19.fi
36b53105 20.SH DESCRIPTION
2cd276f3 21These functions
36b53105 22provide hints about the usage of resources that are shared with other
2cd276f3 23processors on the Power architecture.
36b53105
GG
24They can be used, for example, if a program waiting on a lock intends
25to divert the shared resources to be used by other processors.
11ac5b51 26.PP
36b53105
GG
27.BR __ppc_yield ()
28provides a hint that performance will probably be improved if shared
29resources dedicated to the executing processor are released for use by
30other processors.
11ac5b51 31.PP
36b53105
GG
32.BR __ppc_mdoio ()
33provides a hint that performance will probably be improved if shared
34resources dedicated to the executing processor are released until all
35outstanding storage accesses to caching-inhibited storage have been
36completed.
11ac5b51 37.PP
36b53105
GG
38.BR __ppc_mdoom ()
39provides a hint that performance will probably be improved if shared
40resources dedicated to the executing processor are released until all
41outstanding storage accesses to cacheable storage for which the data
42is not in the cache have been completed.
43.SH VERSIONS
2cd276f3 44These functions first appeared in glibc in version 2.18.
36b53105
GG
45.SH ATTRIBUTES
46For an explanation of the terms used in this section, see
47.BR attributes (7).
48.ad l
c466875e 49.nh
36b53105
GG
50.TS
51allbox;
c466875e 52lbx lb lb
36b53105
GG
53l l l.
54Interface Attribute Value
55T{
56.BR __ppc_yield (),
57.BR __ppc_mdoio (),
58.BR __ppc_mdoom ()
59T} Thread safety MT-Safe
60.TE
c466875e 61.hy
36b53105 62.ad
c466875e 63.sp 1
3113c7f3 64.SH STANDARDS
36b53105
GG
65These functions are nonstandard GNU extensions.
66.SH SEE ALSO
67.BR __ppc_set_ppr_med (3)
847e0d88 68.PP
775cca5a 69.I Power ISA, Book\~II - Section\~3.2 ("or" architecture)