ioctl_fs(2)

ioctl_fs2

Filesystem operations

Usage

#include <linux/fs.h>  /* Definition of op constants */
#include <sys/ioctl.h>

int ioctl(int fd, unsigned long op, ...);

Library

Standard C library (libc, -lc)

Overview

The following op values are available.

Share some of the data of one file with another file

Operations for inode flags

Get or set a filesystem label

Get and/or clear page flags

Return value

On success, a nonnegative value is returned. On error, -1 is returned, and errno is set to indicate the error.

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

Standards

Linux.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.