~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/net/unix/sysctl_net_unix.c

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * NET3:        Sysctl interface to net af_unix subsystem.
  3  *
  4  * Authors:     Mike Shaver.
  5  *
  6  *              Added /proc/sys/net/unix directory entry (empty =) ).
  7  *
  8  *              This program is free software; you can redistribute it and/or
  9  *              modify it under the terms of the GNU General Public License
 10  *              as published by the Free Software Foundation; either version
 11  *              2 of the License, or (at your option) any later version.
 12  */
 13 
 14 #include <linux/mm.h>
 15 #include <linux/sysctl.h>
 16 #include <linux/config.h>
 17 
 18 #ifdef CONFIG_SYSCTL
 19 
 20 extern int sysctl_unix_max_dgram_qlen;
 21 
 22 ctl_table unix_table[] = {
 23         {NET_UNIX_MAX_DGRAM_QLEN, "max_dgram_qlen",
 24         &sysctl_unix_max_dgram_qlen, sizeof(int), 0600, NULL, 
 25          &proc_dointvec },
 26         {0}
 27 };
 28 
 29 static struct ctl_table_header * unix_sysctl_header;
 30 static struct ctl_table unix_root_table[];
 31 static struct ctl_table unix_net_table[];
 32 
 33 ctl_table unix_root_table[] = {
 34         {CTL_NET, "net", NULL, 0, 0555, unix_net_table},
 35         {0}
 36 };
 37 
 38 ctl_table unix_net_table[] = {
 39         {NET_UNIX, "unix", NULL, 0, 0555, unix_table},
 40         {0}
 41 };
 42 
 43 void unix_sysctl_register(void)
 44 {
 45         unix_sysctl_header = register_sysctl_table(unix_root_table, 0);
 46 }
 47 
 48 void unix_sysctl_unregister(void)
 49 {
 50         unregister_sysctl_table(unix_sysctl_header);
 51 }
 52 
 53 #endif  /* CONFIG_SYSCTL */
 54 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.