diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-10-08 13:26:20 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-21 07:47:20 -0400 |
commit | 08f85851215100d0eebf026810955ee6ad456c38 (patch) | |
tree | bdc0034edc2e3c49fa832ef08d13de190374049a /include/linux/blkdev.h | |
parent | 647b3d0084158c47b1aea8f34d13cab9cd0a5b49 (diff) | |
download | blackbird-obmc-linux-08f85851215100d0eebf026810955ee6ad456c38.tar.gz blackbird-obmc-linux-08f85851215100d0eebf026810955ee6ad456c38.zip |
[PATCH] move block_device_operations to blkdev.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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) #endif /* CONFIG_BLK_DEV_INTEGRITY */ +struct file; +struct inode; + +struct block_device_operations { + int (*open) (struct inode *, struct file *); + int (*release) (struct inode *, struct file *); + int (*ioctl) (struct inode *, struct file *, unsigned, unsigned long); + long (*unlocked_ioctl) (struct file *, unsigned, unsigned long); + long (*compat_ioctl) (struct file *, unsigned, unsigned long); + int (*direct_access) (struct block_device *, sector_t, + void **, unsigned long *); + int (*media_changed) (struct gendisk *); + int (*revalidate_disk) (struct gendisk *); + int (*getgeo)(struct block_device *, struct hd_geometry *); + struct module *owner; +}; + #else /* CONFIG_BLOCK */ /* * stubs for when the block layer is configured out |