File: ioctl_fs.2

package info (click to toggle)
manpages 6.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,184 kB
  • sloc: sh: 575; python: 222; perl: 190; makefile: 29; lisp: 22
file content (53 lines) | stat: -rw-r--r-- 1,088 bytes parent folder | download | duplicates (3)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.\" Copyright, the authors of the Linux man-pages project
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.TH ioctl_fs 2 2025-05-17 "Linux man-pages (unreleased)"
.SH NAME
ioctl_fs
\-
filesystem operations
.SH LIBRARY
Standard C library
.RI ( libc ,\~ \-lc )
.SH SYNOPSIS
.nf
.BR "#include <linux/fs.h>" "  /* Definition of op constants */"
.B #include <sys/ioctl.h>
.P
.BI "int ioctl(int " fd ", unsigned long " op ", ...);"
.fi
.SH DESCRIPTION
The following
.I op
values are available.
.SS Share some of the data of one file with another file
.TP
.BR FICLONE (2const)
.TQ
.BR FICLONERANGE (2const)
.TP
.BR FIDEDUPERANGE (2const)
.SS Operations for inode flags
.TP
.BR FS_IOC_GETFLAGS (2const)
.TQ
.BR FS_IOC_SETFLAGS (2const)
.SS Get or set a filesystem label
.TP
.BR FS_IOC_GETFSLABEL (2const)
.TQ
.BR FS_IOC_SETFSLABEL (2const)
.SS Get and/or clear page flags
.TP
.BR PAGEMAP_SCAN (2const)
.SH RETURN VALUE
On success,
a nonnegative value is returned.
On error, \-1 is returned, and
.I errno
is set to indicate the error.
.SH STANDARDS
Linux.
.SH SEE ALSO
.BR ioctl (2)