Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
sysctl.c
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 1k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /*
- * sysctl.c - System control stuff
- *
- * Copyright (C) 1997 Martin von L鰓is
- * Copyright (C) 1997 R間is Duchesne
- */
- #include "sysctl.h"
- #ifdef DEBUG
- #include <linux/locks.h>
- #include <linux/sysctl.h>
- int ntdebug = 0;
- /* Add or remove the debug sysctl
- * Is this really the only file system with sysctls ?
- */
- void ntfs_sysctl(int add)
- {
- #define FS_NTFS 1
- /* Definition of the sysctl */
- static ctl_table ntfs_sysctls[]={
- {FS_NTFS, /* ID */
- "ntfs-debug", /* name in /proc */
- &ntdebug,sizeof(ntdebug), /* data ptr, data size */
- 0644, /* mode */
- 0, /* child */
- proc_dointvec, /* proc handler */
- 0, /* strategy */
- 0, /* proc control block */
- 0,0}, /* extra */
- {0}
- };
- /* Define the parent file : /proc/sys/fs */
- static ctl_table sysctls_root[]={
- {CTL_FS,
- "fs",
- NULL,0,
- 0555,
- ntfs_sysctls},
- {0}
- };
- static struct ctl_table_header *sysctls_root_header = NULL;
- if(add){
- if(!sysctls_root_header)
- sysctls_root_header = register_sysctl_table(sysctls_root, 0);
- } else if(sysctls_root_header) {
- unregister_sysctl_table(sysctls_root_header);
- sysctls_root_header = NULL;
- }
- }
- #endif /* DEBUG */