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
f913f1d9
Commit
f913f1d9
authored
May 25, 2003
by
Linus Torvalds
Committed by
David S. Miller
May 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETLINK]: Use module_init() in netlink_dev.c
parent
69f65fc6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
17 deletions
+5
-17
include/linux/netlink.h
include/linux/netlink.h
+0
-1
net/netlink/af_netlink.c
net/netlink/af_netlink.c
+0
-3
net/netlink/netlink_dev.c
net/netlink/netlink_dev.c
+5
-13
No files found.
include/linux/netlink.h
View file @
f913f1d9
...
...
@@ -108,7 +108,6 @@ struct netlink_skb_parms
extern
int
netlink_attach
(
int
unit
,
int
(
*
function
)(
int
,
struct
sk_buff
*
skb
));
extern
void
netlink_detach
(
int
unit
);
extern
int
netlink_post
(
int
unit
,
struct
sk_buff
*
skb
);
extern
int
init_netlink
(
void
);
extern
struct
sock
*
netlink_kernel_create
(
int
unit
,
void
(
*
input
)(
struct
sock
*
sk
,
int
len
));
extern
void
netlink_ack
(
struct
sk_buff
*
in_skb
,
struct
nlmsghdr
*
nlh
,
int
err
);
extern
int
netlink_unicast
(
struct
sock
*
ssk
,
struct
sk_buff
*
skb
,
__u32
pid
,
int
nonblock
);
...
...
net/netlink/af_netlink.c
View file @
f913f1d9
...
...
@@ -1070,9 +1070,6 @@ static int __init netlink_proto_init(void)
#endif
/* The netlink device handler may be needed early. */
rtnetlink_init
();
#ifdef CONFIG_NETLINK_DEV
init_netlink
();
#endif
return
0
;
}
...
...
net/netlink/netlink_dev.c
View file @
f913f1d9
...
...
@@ -220,7 +220,7 @@ static struct {
},
};
int
__init
init_netlink
(
void
)
static
int
__init
init_netlink
(
void
)
{
int
i
;
...
...
@@ -245,17 +245,7 @@ int __init init_netlink(void)
return
0
;
}
#ifdef MODULE
MODULE_LICENSE
(
"GPL"
);
int
init_module
(
void
)
{
printk
(
KERN_INFO
"Network Kernel/User communications module 0.04
\n
"
);
return
init_netlink
();
}
void
cleanup_module
(
void
)
static
void
__exit
cleanup_netlink
(
void
)
{
int
i
;
...
...
@@ -267,4 +257,6 @@ void cleanup_module(void)
unregister_chrdev
(
NETLINK_MAJOR
,
"netlink"
);
}
#endif
MODULE_LICENSE
(
"GPL"
);
module_init
(
init_netlink
);
module_exit
(
cleanup_netlink
);
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