https://github.com/torvalds/linux
Raw File
Tip revision: 6a55617ed5d1aa62b850de2cf66f5ede2eef4825 authored by Linus Torvalds on 21 August 2008, 02:35:56 UTC
Linux v2.6.27-rc4
Tip revision: 6a55617
nonet.c
/*
 * net/nonet.c
 *
 * Dummy functions to allow us to configure network support entirely
 * out of the kernel.
 *
 * Distributed under the terms of the GNU GPL version 2.
 * Copyright (c) Matthew Wilcox 2003
 */

#include <linux/module.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h>

static int sock_no_open(struct inode *irrelevant, struct file *dontcare)
{
	return -ENXIO;
}

const struct file_operations bad_sock_fops = {
	.owner = THIS_MODULE,
	.open = sock_no_open,
};
back to top