OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [net/] [unix/] [sysctl_net_unix.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.