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
Kirill Smelkov
linux
Commits
977336cc
Commit
977336cc
authored
Sep 04, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Print a KERN_INFO msg when protocol families are {un,}registered.
parent
616f6f9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
net/socket.c
net/socket.c
+4
-0
No files found.
net/socket.c
View file @
977336cc
...
@@ -1894,6 +1894,8 @@ int sock_register(struct net_proto_family *ops)
...
@@ -1894,6 +1894,8 @@ int sock_register(struct net_proto_family *ops)
err
=
0
;
err
=
0
;
}
}
net_family_write_unlock
();
net_family_write_unlock
();
printk
(
KERN_INFO
"NET: Registered protocol family %d
\n
"
,
ops
->
family
);
return
err
;
return
err
;
}
}
...
@@ -1911,6 +1913,8 @@ int sock_unregister(int family)
...
@@ -1911,6 +1913,8 @@ int sock_unregister(int family)
net_family_write_lock
();
net_family_write_lock
();
net_families
[
family
]
=
NULL
;
net_families
[
family
]
=
NULL
;
net_family_write_unlock
();
net_family_write_unlock
();
printk
(
KERN_INFO
"NET: Unregistered protocol family %d
\n
"
,
family
);
return
0
;
return
0
;
}
}
...
...
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