Ubuntu Manpages

ioctl_fs

filesystem operations

Standard C library (libc, -lc)

#include <linux/fs.h>  /* Definition of op constants */
#include <sys/ioctl.h>
int ioctl(int fd, unsigned long op, ...);

The following op values are available.

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

Linux.

ioctl(2)