The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/net/nonet.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * net/nonet.c
    3  *
    4  * Dummy functions to allow us to configure network support entirely
    5  * out of the kernel.
    6  *
    7  * Distributed under the terms of the GNU GPL version 2.
    8  * Copyright (c) Matthew Wilcox 2003
    9  */
   10 
   11 #include <linux/module.h>
   12 #include <linux/errno.h>
   13 #include <linux/fs.h>
   14 #include <linux/init.h>
   15 #include <linux/kernel.h>
   16 
   17 static int sock_no_open(struct inode *irrelevant, struct file *dontcare)
   18 {
   19         return -ENXIO;
   20 }
   21 
   22 const struct file_operations bad_sock_fops = {
   23         .owner = THIS_MODULE,
   24         .open = sock_no_open,
   25         .llseek = noop_llseek,
   26 };

Cache object: 988684e271895a3afd009704960d1f39


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.