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
a68c40c3
Commit
a68c40c3
authored
Jan 09, 2005
by
Christoph Hellwig
Committed by
David S. Miller
Jan 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Add rtnl_lock_interruptible()
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
4e5dd3b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
include/linux/rtnetlink.h
include/linux/rtnetlink.h
+1
-0
net/core/rtnetlink.c
net/core/rtnetlink.c
+6
-0
No files found.
include/linux/rtnetlink.h
View file @
a68c40c3
...
...
@@ -805,6 +805,7 @@ extern struct semaphore rtnl_sem;
} while(0)
extern
void
rtnl_lock
(
void
);
extern
int
rtnl_lock_interruptible
(
void
);
extern
void
rtnl_unlock
(
void
);
extern
void
rtnetlink_init
(
void
);
...
...
net/core/rtnetlink.c
View file @
a68c40c3
...
...
@@ -58,6 +58,11 @@ void rtnl_lock(void)
rtnl_shlock
();
}
int
rtnl_lock_interruptible
(
void
)
{
return
down_interruptible
(
&
rtnl_sem
);
}
void
rtnl_unlock
(
void
)
{
rtnl_shunlock
();
...
...
@@ -695,5 +700,6 @@ EXPORT_SYMBOL(rtnetlink_links);
EXPORT_SYMBOL
(
rtnetlink_put_metrics
);
EXPORT_SYMBOL
(
rtnl
);
EXPORT_SYMBOL
(
rtnl_lock
);
EXPORT_SYMBOL
(
rtnl_lock_interruptible
);
EXPORT_SYMBOL
(
rtnl_sem
);
EXPORT_SYMBOL
(
rtnl_unlock
);
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