/*1* net/nonet.c2*3* Dummy functions to allow us to configure network support entirely4* out of the kernel.5*6* Distributed under the terms of the GNU GPL version 2.7* Copyright (c) Matthew Wilcox 20038*/910#include <linux/module.h>11#include <linux/errno.h>12#include <linux/fs.h>13#include <linux/init.h>14#include <linux/kernel.h>1516static int sock_no_open(struct inode *irrelevant, struct file *dontcare)17{18return -ENXIO;19}2021const struct file_operations bad_sock_fops = {22.owner = THIS_MODULE,23.open = sock_no_open,24.llseek = noop_llseek,25};262728