Debian Codegraph @

upstream/debian-unstable/man2/ioctl_fs.2

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .TH ioctl_fs 2 2025-05-17 "Linux man-pages 6.18"
6 .SH NAME
7 ioctl_fs
8 \-
9 filesystem operations
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .BR "#include <linux/fs.h>" " /* Definition of op constants */"
16 .B #include <sys/ioctl.h>
17 .P
18 .BI "int ioctl(int " fd ", unsigned long " op ", ...);"
19 .fi
20 .SH DESCRIPTION
21 The following
22 .I op
23 values are available.
24 .SS Share some of the data of one file with another file
25 .TP
26 .BR FICLONE (2const)
27 .TQ
28 .BR FICLONERANGE (2const)
29 .TP
30 .BR FIDEDUPERANGE (2const)
31 .SS Operations for inode flags
32 .TP
33 .BR FS_IOC_GETFLAGS (2const)
34 .TQ
35 .BR FS_IOC_SETFLAGS (2const)
36 .SS Get or set a filesystem label
37 .TP
38 .BR FS_IOC_GETFSLABEL (2const)
39 .TQ
40 .BR FS_IOC_SETFSLABEL (2const)
41 .SS Get and/or clear page flags
42 .TP
43 .BR PAGEMAP_SCAN (2const)
44 .SH RETURN VALUE
45 On success,
46 a nonnegative value is returned.
47 On error, \-1 is returned, and
48 .I errno
49 is set to indicate the error.
50 .SH STANDARDS
51 Linux.
52 .SH SEE ALSO
53 .BR ioctl (2)