Debian Codegraph @

upstream/debian-trixie/man2/UFFDIO_UNREGISTER.2const

raw
1 .\" Copyright 2016, IBM Corporation.
2 .\" Written by Mike Rapoport <[email protected]>
3 .\" Copyright 2016, Michael Kerrisk <[email protected]>
4 .\" Copyright 2024, Alejandro Colomar <[email protected]>
5 .\"
6 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .\"
8 .TH UFFDIO_UNREGISTER 2const 2024-06-14 "Linux man-pages 6.9.1"
9 .SH NAME
10 UFFDIO_UNREGISTER
11 \-
12 unregister a memory address range from userfaultfd
13 .SH LIBRARY
14 Standard C library
15 .RI ( libc ", " \-lc )
16 .SH SYNOPSIS
17 .nf
18 .BR "#include <linux/userfaultfd.h>" " /* Definition of " UFFD* " constants */"
19 .B #include <sys/ioctl.h>
20 .P
21 .BI "int ioctl(int " fd ", UFFDIO_UNREGISTER, const struct uffdio_range *" argp );
22 .fi
23 .SH DESCRIPTION
24 Unregister a memory address range from userfaultfd.
25 The pages in the range must be \[lq]compatible\[rq]
26 (see
27 .BR UFFDIO_REGISTER (2const)).
28 .SH RETURN VALUE
29 On success,
30 0 is returned.
31 On error, \-1 is returned and
32 .I errno
33 is set to indicate the error.
34 .SH ERRORS
35 .TP
36 .B EINVAL
37 Either
38 .I argp->start
39 or the
40 .I argp->len
41 fields
42 was not a multiple of the system page size; or the
43 .I argp->len
44 field was zero; or these fields were otherwise invalid.
45 .TP
46 .B EINVAL
47 There as an incompatible mapping in the specified address range.
48 .TP
49 .B EINVAL
50 There was no mapping in the specified address range.
51 .SH STANDARDS
52 Linux.
53 .SH HISTORY
54 Linux 4.3.
55 .SH EXAMPLES
56 See
57 .BR userfaultfd (2).
58 .SH SEE ALSO
59 .BR ioctl (2),
60 .BR ioctl_userfaultfd (2),
61 .BR UFFDIO_REGISTER (2const),
62 .BR userfaultfd (2)
63 .P
64 .I linux.git/Documentation/admin\-guide/mm/userfaultfd.rst