Debian Codegraph @

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

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