Revision 6b16351acbd415e66ba16bf7d473ece1574cf0bc authored by Linus Torvalds on 24 June 2012, 19:53:04 UTC, committed by Linus Torvalds on 24 June 2012, 19:53:04 UTC
1 parent 02b7d83
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,
.llseek = noop_llseek,
};
Computing file changes ...