Debian Codegraph @

upstream/fedora-44/man3/__riscv_flush_icache.3

raw
1 .\" Copyright (C) Rivos Inc., 2024
2 .\"
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
4 .\"
5 .TH __riscv_flush_icache 3 2024-07-23 "Linux man-pages 6.13"
6 .SH NAME
7 __riscv_flush_icache
8 \-
9 Flush icaches on RISC-V
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .B #include <sys/cachectl.h>
16 .P
17 .B int __riscv_flush_icache(void *start, void *end, \
18 unsigned long flags);
19 .fi
20 .SH DESCRIPTION
21 .BR __riscv_flush_icache ()
22 enforces ordering between stores and instruction cache fetches.
23 .P
24 The range of addresses over which ordering is enforced is specified by
25 .I start
26 and
27 .IR end .
28 .P
29 The
30 .I flags
31 argument controls the extent of this ordering,
32 with the default behavior
33 (a
34 .I flags
35 value of 0)
36 being to enforce the fence on
37 all threads in the current process.
38 Setting the
39 .B SYS_RISCV_FLUSH_ICACHE_LOCAL
40 bit allows users to indicate that enforcing ordering on
41 only the current thread is necessary.
42 All other flag bits are reserved.
43 .SH STANDARDS
44 Linux on RISC-V.
45 .SH HISTORY
46 Linux 4.15.
47 glibc 2.27.
48 .SH SEE ALSO
49 .BR syscall (2)