Go to the source code of this file.
|
#define | _IO(type, nr) _IOC(_IOC_NONE,(type),(nr),0) |
|
#define | _IOC(dir, type, nr, size) |
|
#define | _IOC_DIRBITS 2 |
|
#define | _IOC_DIRMASK ((1 << _IOC_DIRBITS)-1) |
|
#define | _IOC_DIRSHIFT (_IOC_SIZESHIFT+_IOC_SIZEBITS) |
|
#define | _IOC_NONE 0U |
|
#define | _IOC_NRBITS 8 |
|
#define | _IOC_NRMASK ((1 << _IOC_NRBITS)-1) |
|
#define | _IOC_NRSHIFT 0 |
|
#define | _IOC_READ 2U |
|
#define | _IOC_SIZEBITS 14 |
|
#define | _IOC_SIZEMASK ((1 << _IOC_SIZEBITS)-1) |
|
#define | _IOC_SIZESHIFT (_IOC_TYPESHIFT+_IOC_TYPEBITS) |
|
#define | _IOC_TYPEBITS 8 |
|
#define | _IOC_TYPECHECK(t) (sizeof(t)) |
|
#define | _IOC_TYPEMASK ((1 << _IOC_TYPEBITS)-1) |
|
#define | _IOC_TYPESHIFT (_IOC_NRSHIFT+_IOC_NRBITS) |
|
#define | _IOC_WRITE 1U |
|
#define | _IOR(type, nr, size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) |
|
#define | _IOW(type, nr, size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) |
|
#define | _IOWR(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) |
|
#define | BLKGETSIZE64 _IOR(0x12,114,size_t) /* get device size in bytes (u64 *arg) */ |
|
#define | BLKPBSZGET _IO(0x12,123) /* get block physical device sector size */ |
|
#define | BLKSSZGET _IO(0x12,104) /* get block logical device sector size */ |
|
◆ _IO
◆ _IOC
#define _IOC |
( |
|
dir, |
|
|
|
type, |
|
|
|
nr, |
|
|
|
size |
|
) |
| |
Value:
Definition at line 87 of file ioctl.h.
◆ _IOC_DIRBITS
◆ _IOC_DIRMASK
◆ _IOC_DIRSHIFT
◆ _IOC_NONE
◆ _IOC_NRBITS
◆ _IOC_NRMASK
◆ _IOC_NRSHIFT
◆ _IOC_READ
◆ _IOC_SIZEBITS
◆ _IOC_SIZEMASK
◆ _IOC_SIZESHIFT
◆ _IOC_TYPEBITS
◆ _IOC_TYPECHECK
#define _IOC_TYPECHECK |
( |
|
t | ) |
(sizeof(t)) |
◆ _IOC_TYPEMASK
◆ _IOC_TYPESHIFT
◆ _IOC_WRITE
◆ _IOR
◆ _IOW
◆ _IOWR
◆ BLKGETSIZE64
#define BLKGETSIZE64 _IOR(0x12,114,size_t) /* get device size in bytes (u64 *arg) */ |
◆ BLKPBSZGET
#define BLKPBSZGET _IO(0x12,123) /* get block physical device sector size */ |
◆ BLKSSZGET
#define BLKSSZGET _IO(0x12,104) /* get block logical device sector size */ |