Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5e1dcb06
Commit
5e1dcb06
authored
Mar 19, 2003
by
Matthew Wilcox
Committed by
David S. Miller
Mar 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Optimize handling of CONFIG_NET=n.
parent
486874ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
1 deletion
+48
-1
kernel/sys.c
kernel/sys.c
+17
-0
net/Makefile
net/Makefile
+3
-1
net/nonet.c
net/nonet.c
+28
-0
No files found.
kernel/sys.c
View file @
5e1dcb06
...
...
@@ -209,6 +209,23 @@ cond_syscall(sys_swapon)
cond_syscall
(
sys_swapoff
)
cond_syscall
(
sys_init_module
)
cond_syscall
(
sys_delete_module
)
cond_syscall
(
sys_socketpair
)
cond_syscall
(
sys_bind
)
cond_syscall
(
sys_listen
)
cond_syscall
(
sys_accept
)
cond_syscall
(
sys_connect
)
cond_syscall
(
sys_getsockname
)
cond_syscall
(
sys_getpeername
)
cond_syscall
(
sys_sendto
)
cond_syscall
(
sys_send
)
cond_syscall
(
sys_recvfrom
)
cond_syscall
(
sys_recv
)
cond_syscall
(
sys_setsockopt
)
cond_syscall
(
sys_getsockopt
)
cond_syscall
(
sys_shutdown
)
cond_syscall
(
sys_sendmsg
)
cond_syscall
(
sys_recvmsg
)
cond_syscall
(
sys_socketcall
)
static
int
set_one_prio
(
struct
task_struct
*
p
,
int
niceval
,
int
error
)
{
...
...
net/Makefile
View file @
5e1dcb06
...
...
@@ -5,7 +5,9 @@
# Rewritten to use lists instead of if-statements.
#
obj-y
:=
socket.o core/
obj-y
:=
nonet.o
obj-$(CONFIG_NET)
:=
socket.o core/
obj-$(CONFIG_COMPAT)
+=
compat.o
...
...
net/nonet.c
0 → 100644
View file @
5e1dcb06
/*
* 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/errno.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h>
void
__init
sock_init
(
void
)
{
printk
(
KERN_INFO
"Linux NoNET1.0 for Linux 2.6
\n
"
);
}
static
int
sock_no_open
(
struct
inode
*
irrelevant
,
struct
file
*
dontcare
)
{
return
-
ENXIO
;
}
struct
file_operations
bad_sock_fops
=
{
.
open
=
sock_no_open
,
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment