File: __riscv_flush_icache.3

package info (click to toggle)
manpages 6.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,184 kB
  • sloc: sh: 575; python: 222; perl: 190; makefile: 29; lisp: 22
file content (49 lines) | stat: -rw-r--r-- 1,072 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.\" Copyright, the authors of the Linux man-pages project
.\"
.\" SPDX-License-Identifier: GPL-2.0-or-later
.\"
.TH __riscv_flush_icache 3 2025-05-17 "Linux man-pages (unreleased)"
.SH NAME
__riscv_flush_icache
\-
Flush icaches on RISC-V
.SH LIBRARY
Standard C library
.RI ( libc ,\~ \-lc )
.SH SYNOPSIS
.nf
.B #include <sys/cachectl.h>
.P
.B int __riscv_flush_icache(void *start, void *end, \
unsigned long flags);
.fi
.SH DESCRIPTION
.BR __riscv_flush_icache ()
enforces ordering between stores and instruction cache fetches.
.P
The range of addresses over which ordering is enforced is specified by
.I start
and
.IR end .
.P
The
.I flags
argument controls the extent of this ordering,
with the default behavior
(a
.I flags
value of 0)
being to enforce the fence on
all threads in the current process.
Setting the
.B SYS_RISCV_FLUSH_ICACHE_LOCAL
bit allows users to indicate that enforcing ordering on
only the current thread is necessary.
All other flag bits are reserved.
.SH STANDARDS
Linux on RISC-V.
.SH HISTORY
Linux 4.15.
glibc 2.27.
.SH SEE ALSO
.BR syscall (2)