![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0-or-later 0002 /* no-block.c: implementation of routines required for non-BLOCK configuration 0003 * 0004 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. 0005 * Written by David Howells (dhowells@redhat.com) 0006 */ 0007 0008 #include <linux/kernel.h> 0009 #include <linux/fs.h> 0010 0011 static int no_blkdev_open(struct inode * inode, struct file * filp) 0012 { 0013 return -ENODEV; 0014 } 0015 0016 const struct file_operations def_blk_fops = { 0017 .open = no_blkdev_open, 0018 .llseek = noop_llseek, 0019 };
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |