Commit a68c40c3 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller

[NET]: Add rtnl_lock_interruptible()

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4e5dd3b5
......@@ -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);
......
......@@ -57,6 +57,11 @@ void rtnl_lock(void)
{
rtnl_shlock();
}
int rtnl_lock_interruptible(void)
{
return down_interruptible(&rtnl_sem);
}
void rtnl_unlock(void)
{
......@@ -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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment