* [PATCH 1/2] add rtnl_lock_interruptible()
@ 2005-01-09 12:14 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2005-01-09 12:14 UTC (permalink / raw)
To: davem, jgarzik; +Cc: netdev
--- 1.47/include/linux/rtnetlink.h 2004-11-03 23:00:25 +01:00
+++ edited/include/linux/rtnetlink.h 2005-01-09 12:49:58 +01:00
@@ -806,6 +806,7 @@
} while(0)
extern void rtnl_lock(void);
+extern int rtnl_lock_interruptible(void);
extern void rtnl_unlock(void);
extern void rtnetlink_init(void);
--- 1.30/net/core/rtnetlink.c 2004-12-01 07:04:20 +01:00
+++ edited/net/core/rtnetlink.c 2005-01-09 12:53:33 +01:00
@@ -57,6 +57,11 @@
{
rtnl_shlock();
}
+
+int rtnl_lock_interruptible(void)
+{
+ return down_interruptible(&rtnl_sem);
+}
void rtnl_unlock(void)
{
@@ -696,5 +701,6 @@
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-09 12:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-09 12:14 [PATCH 1/2] add rtnl_lock_interruptible() Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).