summaryrefslogtreecommitdiff
path: root/net/netlink
diff options
context:
space:
mode:
authorJames Chapman <jchapman@katalix.com>2010-04-02 10:19:05 +0400
committerDavid S. Miller <davem@davemloft.net>2010-04-04 01:56:05 +0400
commitf408e0ce40270559ef80f231843c93baa9947bc5 (patch)
tree0a71cda13657bd3c058ed110714f4ac829a50ad2 /net/netlink
parent0d76751fad7739014485ba5bd388d4f1b4fd4143 (diff)
downloadlinux-f408e0ce40270559ef80f231843c93baa9947bc5.tar.xz
netlink: Export genl_lock() API for use by modules
This lets kernel modules which use genl netlink APIs serialize netlink processing. Signed-off-by: James Chapman <jchapman@katalix.com> Reviewed-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/genetlink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index a4b6e148c5de..a28fda7420d9 100644
--- a/net/netlink/genetlink.c
+++ b/net/netlink/genetlink.c
@@ -20,15 +20,17 @@
static DEFINE_MUTEX(genl_mutex); /* serialization of message processing */
-static inline void genl_lock(void)
+void genl_lock(void)
{
mutex_lock(&genl_mutex);
}
+EXPORT_SYMBOL(genl_lock);
-static inline void genl_unlock(void)
+void genl_unlock(void)
{
mutex_unlock(&genl_mutex);
}
+EXPORT_SYMBOL(genl_unlock);
#define GENL_FAM_TAB_SIZE 16
#define GENL_FAM_TAB_MASK (GENL_FAM_TAB_SIZE - 1)