Blame view

fs/no-block.c 478 Bytes
2874c5fd2   Thomas Gleixner   treewide: Replace...
1
  // SPDX-License-Identifier: GPL-2.0-or-later
9361401eb   David Howells   [PATCH] BLOCK: Ma...
2
3
4
5
  /* no-block.c: implementation of routines required for non-BLOCK configuration
   *
   * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
   * Written by David Howells (dhowells@redhat.com)
9361401eb   David Howells   [PATCH] BLOCK: Ma...
6
7
8
9
10
11
12
13
14
15
16
17
   */
  
  #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,
6038f373a   Arnd Bergmann   llseek: automatic...
18
  	.llseek		= noop_llseek,
9361401eb   David Howells   [PATCH] BLOCK: Ma...
19
  };