Info

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);

int (*media_changed) (struct gendisk *); int (*revalidate_disk) (struct gendisk *);

struct module *owner;

open, release and ioctl have the same meaning as the equivalent functions in file_operations and are used to open and close files, and to send special commands to a block device.

Continue reading here: The functions are not invoked directly by the VFS code but indirectly by the operations contained in the standard file operations for block devices defblkfops

Was this article helpful?

0 0