diff options
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 48f41b991adb..48ec8862a11a 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -1057,6 +1057,23 @@ static inline int blk_integrity_rq(struct request *rq) | |||
1057 | 1057 | ||
1058 | #endif /* CONFIG_BLK_DEV_INTEGRITY */ | 1058 | #endif /* CONFIG_BLK_DEV_INTEGRITY */ |
1059 | 1059 | ||
1060 | struct file; | ||
1061 | struct inode; | ||
1062 | |||
1063 | struct block_device_operations { | ||
1064 | int (*open) (struct inode *, struct file *); | ||
1065 | int (*release) (struct inode *, struct file *); | ||
1066 | int (*ioctl) (struct inode *, struct file *, unsigned, unsigned long); | ||
1067 | long (*unlocked_ioctl) (struct file *, unsigned, unsigned long); | ||
1068 | long (*compat_ioctl) (struct file *, unsigned, unsigned long); | ||
1069 | int (*direct_access) (struct block_device *, sector_t, | ||
1070 | void **, unsigned long *); | ||
1071 | int (*media_changed) (struct gendisk *); | ||
1072 | int (*revalidate_disk) (struct gendisk *); | ||
1073 | int (*getgeo)(struct block_device *, struct hd_geometry *); | ||
1074 | struct module *owner; | ||
1075 | }; | ||
1076 | |||
1060 | #else /* CONFIG_BLOCK */ | 1077 | #else /* CONFIG_BLOCK */ |
1061 | /* | 1078 | /* |
1062 | * stubs for when the block layer is configured out | 1079 | * stubs for when the block layer is configured out |