blob: 5ec26161be9520ca38ad466aae13e7309e6b68fc (
plain)
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
|
.\" -*- nroff -*-
.TH cli 9 "$Date:$" "Linux DDI" "Kernel Functions"
.SH NAME
cli, sti \- disable/enable interrupts
.SH SYNOPSIS
.B #include <asm/system.h>
.sp
.BI "extern void cli()"
.br
.BI "extern void sti()"
.SH DESCRIPTION
The
.B cli
function causes interrupts to be blocked on the host, so that
following critical code may run uninterrupted. The
.B sti
function enables interrupts again.
.PP
Although it is possible to use cli/sti pairs to protect critical code,
it is best to use
.B cli
with the
.B save_flags
macro. See
.B save_flags "(9)."
.SH "RETURN VALUE"
none
.SH AVAILABILITY
Linux 1.0+
.SH "SEE ALSO"
.BR save_flags "(9)"
.PP
.IR "include/asm-*/system.h"
.SH AUTHOR
Stephen Williams (steve@icarus.com)
.SH BUGS
The i386 ancestry of the names can be slightly confusing.
|