Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
ioctl.h File Reference
#include <linux/ioctl.h>

Go to the source code of this file.

Data Structures

struct  btrfs_ioctl_vol_args
 
struct  btrfs_qgroup_limit
 
struct  btrfs_qgroup_inherit
 
struct  btrfs_ioctl_qgroup_limit_args
 
struct  btrfs_ioctl_vol_args_v2
 
struct  btrfs_scrub_progress
 
struct  btrfs_ioctl_scrub_args
 
struct  btrfs_ioctl_dev_info_args
 
struct  btrfs_ioctl_fs_info_args
 
struct  btrfs_balance_args
 
struct  btrfs_balance_progress
 
struct  btrfs_ioctl_balance_args
 
struct  btrfs_ioctl_ino_lookup_args
 
struct  btrfs_ioctl_search_key
 
struct  btrfs_ioctl_search_header
 
struct  btrfs_ioctl_search_args
 
struct  btrfs_ioctl_clone_range_args
 
struct  btrfs_ioctl_space_info
 
struct  btrfs_ioctl_space_args
 
struct  btrfs_data_container
 
struct  btrfs_ioctl_ino_path_args
 
struct  btrfs_ioctl_logical_ino_args
 
struct  btrfs_ioctl_get_dev_stats
 
struct  btrfs_ioctl_quota_ctl_args
 
struct  btrfs_ioctl_qgroup_assign_args
 
struct  btrfs_ioctl_qgroup_create_args
 
struct  btrfs_ioctl_timespec
 
struct  btrfs_ioctl_received_subvol_args
 
struct  btrfs_ioctl_send_args
 

Macros

#define BTRFS_IOCTL_MAGIC   0x94
 
#define BTRFS_VOL_NAME_MAX   255
 
#define BTRFS_PATH_NAME_MAX   4087
 
#define BTRFS_SUBVOL_CREATE_ASYNC   (1ULL << 0)
 
#define BTRFS_SUBVOL_RDONLY   (1ULL << 1)
 
#define BTRFS_SUBVOL_QGROUP_INHERIT   (1ULL << 2)
 
#define BTRFS_FSID_SIZE   16
 
#define BTRFS_UUID_SIZE   16
 
#define BTRFS_QGROUP_INHERIT_SET_LIMITS   (1ULL << 0)
 
#define BTRFS_SUBVOL_NAME_MAX   4039
 
#define BTRFS_SCRUB_READONLY   1
 
#define BTRFS_DEVICE_PATH_NAME_MAX   1024
 
#define BTRFS_BALANCE_CTL_PAUSE   1
 
#define BTRFS_BALANCE_CTL_CANCEL   2
 
#define BTRFS_BALANCE_STATE_RUNNING   (1ULL << 0)
 
#define BTRFS_BALANCE_STATE_PAUSE_REQ   (1ULL << 1)
 
#define BTRFS_BALANCE_STATE_CANCEL_REQ   (1ULL << 2)
 
#define BTRFS_INO_LOOKUP_PATH_MAX   4080
 
#define BTRFS_SEARCH_ARGS_BUFSIZE   (4096 - sizeof(struct btrfs_ioctl_search_key))
 
#define BTRFS_DEFRAG_RANGE_COMPRESS   1
 
#define BTRFS_DEFRAG_RANGE_START_IO   2
 
#define BTRFS_DEV_STATS_RESET   (1ULL << 0)
 
#define BTRFS_QUOTA_CTL_ENABLE   1
 
#define BTRFS_QUOTA_CTL_DISABLE   2
 
#define BTRFS_QUOTA_CTL_RESCAN   3
 
#define BTRFS_IOC_SNAP_CREATE
 
#define BTRFS_IOC_DEFRAG
 
#define BTRFS_IOC_RESIZE
 
#define BTRFS_IOC_SCAN_DEV
 
#define BTRFS_IOC_TRANS_START   _IO(BTRFS_IOCTL_MAGIC, 6)
 
#define BTRFS_IOC_TRANS_END   _IO(BTRFS_IOCTL_MAGIC, 7)
 
#define BTRFS_IOC_SYNC   _IO(BTRFS_IOCTL_MAGIC, 8)
 
#define BTRFS_IOC_CLONE   _IOW(BTRFS_IOCTL_MAGIC, 9, int)
 
#define BTRFS_IOC_ADD_DEV
 
#define BTRFS_IOC_RM_DEV
 
#define BTRFS_IOC_BALANCE
 
#define BTRFS_IOC_CLONE_RANGE
 
#define BTRFS_IOC_SUBVOL_CREATE
 
#define BTRFS_IOC_SNAP_DESTROY
 
#define BTRFS_IOC_DEFRAG_RANGE
 
#define BTRFS_IOC_TREE_SEARCH
 
#define BTRFS_IOC_INO_LOOKUP
 
#define BTRFS_IOC_DEFAULT_SUBVOL   _IOW(BTRFS_IOCTL_MAGIC, 19, u64)
 
#define BTRFS_IOC_SPACE_INFO
 
#define BTRFS_IOC_START_SYNC   _IOR(BTRFS_IOCTL_MAGIC, 24, __u64)
 
#define BTRFS_IOC_WAIT_SYNC   _IOW(BTRFS_IOCTL_MAGIC, 22, __u64)
 
#define BTRFS_IOC_SNAP_CREATE_V2
 
#define BTRFS_IOC_SUBVOL_CREATE_V2
 
#define BTRFS_IOC_SUBVOL_GETFLAGS   _IOR(BTRFS_IOCTL_MAGIC, 25, __u64)
 
#define BTRFS_IOC_SUBVOL_SETFLAGS   _IOW(BTRFS_IOCTL_MAGIC, 26, __u64)
 
#define BTRFS_IOC_SCRUB
 
#define BTRFS_IOC_SCRUB_CANCEL   _IO(BTRFS_IOCTL_MAGIC, 28)
 
#define BTRFS_IOC_SCRUB_PROGRESS
 
#define BTRFS_IOC_DEV_INFO
 
#define BTRFS_IOC_FS_INFO
 
#define BTRFS_IOC_BALANCE_V2
 
#define BTRFS_IOC_BALANCE_CTL   _IOW(BTRFS_IOCTL_MAGIC, 33, int)
 
#define BTRFS_IOC_BALANCE_PROGRESS
 
#define BTRFS_IOC_INO_PATHS
 
#define BTRFS_IOC_LOGICAL_INO
 
#define BTRFS_IOC_SET_RECEIVED_SUBVOL
 
#define BTRFS_IOC_SEND   _IOW(BTRFS_IOCTL_MAGIC, 38, struct btrfs_ioctl_send_args)
 
#define BTRFS_IOC_DEVICES_READY
 
#define BTRFS_IOC_QUOTA_CTL
 
#define BTRFS_IOC_QGROUP_ASSIGN
 
#define BTRFS_IOC_QGROUP_CREATE
 
#define BTRFS_IOC_QGROUP_LIMIT
 
#define BTRFS_IOC_GET_DEV_STATS
 

Enumerations

enum  btrfs_dev_stat_values {
  BTRFS_DEV_STAT_WRITE_ERRS, BTRFS_DEV_STAT_READ_ERRS, BTRFS_DEV_STAT_FLUSH_ERRS, BTRFS_DEV_STAT_CORRUPTION_ERRS,
  BTRFS_DEV_STAT_GENERATION_ERRS, BTRFS_DEV_STAT_VALUES_MAX
}
 

Functions

struct btrfs_balance_args __attribute__ ((__packed__))
 

Variables

__u64 profiles
 
__u64 usage
 
__u64 devid
 
__u64 pstart
 
__u64 pend
 
__u64 vstart
 
__u64 vend
 
__u64 target
 
__u64 flags
 
__u64 unused [8]
 
struct btrfs_balance_progress __attribute__
 

Macro Definition Documentation

#define BTRFS_BALANCE_CTL_CANCEL   2

Definition at line 145 of file ioctl.h.

#define BTRFS_BALANCE_CTL_PAUSE   1

Definition at line 144 of file ioctl.h.

#define BTRFS_BALANCE_STATE_CANCEL_REQ   (1ULL << 2)

Definition at line 177 of file ioctl.h.

#define BTRFS_BALANCE_STATE_PAUSE_REQ   (1ULL << 1)

Definition at line 176 of file ioctl.h.

#define BTRFS_BALANCE_STATE_RUNNING   (1ULL << 0)

Definition at line 175 of file ioctl.h.

#define BTRFS_DEFRAG_RANGE_COMPRESS   1

Definition at line 261 of file ioctl.h.

#define BTRFS_DEFRAG_RANGE_START_IO   2

Definition at line 262 of file ioctl.h.

#define BTRFS_DEV_STATS_RESET   (1ULL << 0)

Definition at line 320 of file ioctl.h.

#define BTRFS_DEVICE_PATH_NAME_MAX   1024

Definition at line 126 of file ioctl.h.

#define BTRFS_FSID_SIZE   16

Definition at line 36 of file ioctl.h.

#define BTRFS_INO_LOOKUP_PATH_MAX   4080

Definition at line 192 of file ioctl.h.

#define BTRFS_IOC_ADD_DEV
Value:

Definition at line 392 of file ioctl.h.

#define BTRFS_IOC_BALANCE
Value:

Definition at line 396 of file ioctl.h.

#define BTRFS_IOC_BALANCE_CTL   _IOW(BTRFS_IOCTL_MAGIC, 33, int)

Definition at line 434 of file ioctl.h.

#define BTRFS_IOC_BALANCE_PROGRESS
Value:

Definition at line 435 of file ioctl.h.

#define BTRFS_IOC_BALANCE_V2
Value:

Definition at line 432 of file ioctl.h.

#define BTRFS_IOC_CLONE   _IOW(BTRFS_IOCTL_MAGIC, 9, int)

Definition at line 391 of file ioctl.h.

#define BTRFS_IOC_CLONE_RANGE
Value:

Definition at line 399 of file ioctl.h.

#define BTRFS_IOC_DEFAULT_SUBVOL   _IOW(BTRFS_IOCTL_MAGIC, 19, u64)

Definition at line 412 of file ioctl.h.

#define BTRFS_IOC_DEFRAG
Value:

Definition at line 377 of file ioctl.h.

#define BTRFS_IOC_DEFRAG_RANGE
Value:

Definition at line 406 of file ioctl.h.

#define BTRFS_IOC_DEV_INFO
Value:

Definition at line 428 of file ioctl.h.

#define BTRFS_IOC_DEVICES_READY
Value:

Definition at line 444 of file ioctl.h.

#define BTRFS_IOC_FS_INFO
Value:

Definition at line 430 of file ioctl.h.

#define BTRFS_IOC_GET_DEV_STATS
Value:

Definition at line 454 of file ioctl.h.

#define BTRFS_IOC_INO_LOOKUP
Value:

Definition at line 410 of file ioctl.h.

#define BTRFS_IOC_INO_PATHS
Value:

Definition at line 437 of file ioctl.h.

#define BTRFS_IOC_LOGICAL_INO
Value:

Definition at line 439 of file ioctl.h.

#define BTRFS_IOC_QGROUP_ASSIGN
Value:

Definition at line 448 of file ioctl.h.

#define BTRFS_IOC_QGROUP_CREATE
Value:

Definition at line 450 of file ioctl.h.

#define BTRFS_IOC_QGROUP_LIMIT
Value:

Definition at line 452 of file ioctl.h.

#define BTRFS_IOC_QUOTA_CTL
Value:

Definition at line 446 of file ioctl.h.

#define BTRFS_IOC_RESIZE
Value:

Definition at line 379 of file ioctl.h.

#define BTRFS_IOC_RM_DEV
Value:

Definition at line 394 of file ioctl.h.

#define BTRFS_IOC_SCAN_DEV
Value:

Definition at line 381 of file ioctl.h.

#define BTRFS_IOC_SCRUB
Value:

Definition at line 423 of file ioctl.h.

#define BTRFS_IOC_SCRUB_CANCEL   _IO(BTRFS_IOCTL_MAGIC, 28)

Definition at line 425 of file ioctl.h.

#define BTRFS_IOC_SCRUB_PROGRESS
Value:

Definition at line 426 of file ioctl.h.

#define BTRFS_IOC_SEND   _IOW(BTRFS_IOCTL_MAGIC, 38, struct btrfs_ioctl_send_args)

Definition at line 443 of file ioctl.h.

#define BTRFS_IOC_SET_RECEIVED_SUBVOL
Value:

Definition at line 441 of file ioctl.h.

#define BTRFS_IOC_SNAP_CREATE
Value:

Definition at line 375 of file ioctl.h.

#define BTRFS_IOC_SNAP_CREATE_V2
Value:

Definition at line 417 of file ioctl.h.

#define BTRFS_IOC_SNAP_DESTROY
Value:

Definition at line 404 of file ioctl.h.

#define BTRFS_IOC_SPACE_INFO
Value:

Definition at line 413 of file ioctl.h.

#define BTRFS_IOC_START_SYNC   _IOR(BTRFS_IOCTL_MAGIC, 24, __u64)

Definition at line 415 of file ioctl.h.

#define BTRFS_IOC_SUBVOL_CREATE
Value:

Definition at line 402 of file ioctl.h.

#define BTRFS_IOC_SUBVOL_CREATE_V2
Value:

Definition at line 419 of file ioctl.h.

#define BTRFS_IOC_SUBVOL_GETFLAGS   _IOR(BTRFS_IOCTL_MAGIC, 25, __u64)

Definition at line 421 of file ioctl.h.

#define BTRFS_IOC_SUBVOL_SETFLAGS   _IOW(BTRFS_IOCTL_MAGIC, 26, __u64)

Definition at line 422 of file ioctl.h.

#define BTRFS_IOC_SYNC   _IO(BTRFS_IOCTL_MAGIC, 8)

Definition at line 389 of file ioctl.h.

#define BTRFS_IOC_TRANS_END   _IO(BTRFS_IOCTL_MAGIC, 7)

Definition at line 388 of file ioctl.h.

#define BTRFS_IOC_TRANS_START   _IO(BTRFS_IOCTL_MAGIC, 6)

Definition at line 387 of file ioctl.h.

#define BTRFS_IOC_TREE_SEARCH
Value:

Definition at line 408 of file ioctl.h.

#define BTRFS_IOC_WAIT_SYNC   _IOW(BTRFS_IOCTL_MAGIC, 22, __u64)

Definition at line 416 of file ioctl.h.

#define BTRFS_IOCTL_MAGIC   0x94

Definition at line 23 of file ioctl.h.

#define BTRFS_PATH_NAME_MAX   4087

Definition at line 27 of file ioctl.h.

#define BTRFS_QGROUP_INHERIT_SET_LIMITS   (1ULL << 0)

Definition at line 39 of file ioctl.h.

#define BTRFS_QUOTA_CTL_DISABLE   2

Definition at line 334 of file ioctl.h.

#define BTRFS_QUOTA_CTL_ENABLE   1

Definition at line 333 of file ioctl.h.

#define BTRFS_QUOTA_CTL_RESCAN   3

Definition at line 335 of file ioctl.h.

#define BTRFS_SCRUB_READONLY   1

Definition at line 115 of file ioctl.h.

#define BTRFS_SEARCH_ARGS_BUFSIZE   (4096 - sizeof(struct btrfs_ioctl_search_key))

Definition at line 243 of file ioctl.h.

#define BTRFS_SUBVOL_CREATE_ASYNC   (1ULL << 0)

Definition at line 33 of file ioctl.h.

#define BTRFS_SUBVOL_NAME_MAX   4039

Definition at line 63 of file ioctl.h.

#define BTRFS_SUBVOL_QGROUP_INHERIT   (1ULL << 2)

Definition at line 35 of file ioctl.h.

#define BTRFS_SUBVOL_RDONLY   (1ULL << 1)

Definition at line 34 of file ioctl.h.

#define BTRFS_UUID_SIZE   16

Definition at line 37 of file ioctl.h.

#define BTRFS_VOL_NAME_MAX   255

Definition at line 24 of file ioctl.h.

Enumeration Type Documentation

Enumerator:
BTRFS_DEV_STAT_WRITE_ERRS 
BTRFS_DEV_STAT_READ_ERRS 
BTRFS_DEV_STAT_FLUSH_ERRS 
BTRFS_DEV_STAT_CORRUPTION_ERRS 
BTRFS_DEV_STAT_GENERATION_ERRS 
BTRFS_DEV_STAT_VALUES_MAX 

Definition at line 300 of file ioctl.h.

Function Documentation

struct btrfs_balance_args __attribute__ ( (__packed__)  )
read

Definition at line 85 of file mpc512x_dma.c.

Variable Documentation

__u64 devid

Definition at line 168 of file ioctl.h.

__u64 flags

Definition at line 176 of file ioctl.h.

__u64 pend

Definition at line 170 of file ioctl.h.

__u64 profiles

Definition at line 166 of file ioctl.h.

__u64 pstart

Definition at line 169 of file ioctl.h.

__u64 target

Definition at line 174 of file ioctl.h.

Definition at line 178 of file ioctl.h.

__u64 usage

Definition at line 167 of file ioctl.h.

__u64 vend

Definition at line 172 of file ioctl.h.

__u64 vstart

Definition at line 171 of file ioctl.h.