1234567891011121314151617181920212223 |
- #include <linux/kernel.h>
- #include <linux/fs.h>
- static int no_blkdev_open(struct inode * inode, struct file * filp)
- {
- return -ENODEV;
- }
- const struct file_operations def_blk_fops = {
- .open = no_blkdev_open,
- .llseek = noop_llseek,
- };
|