aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/genetlink.h
diff options
context:
space:
mode:
authorJames Chapman <jchapman@katalix.com>2010-04-02 06:19:05 +0000
committerDavid S. Miller <davem@davemloft.net>2010-04-03 14:56:05 -0700
commitf408e0ce40270559ef80f231843c93baa9947bc5 (patch)
tree0a71cda13657bd3c058ed110714f4ac829a50ad2 /include/linux/genetlink.h
parentl2tp: Add L2TPv3 IP encapsulation (no UDP) support (diff)
downloadlinux-dev-f408e0ce40270559ef80f231843c93baa9947bc5.tar.xz
linux-dev-f408e0ce40270559ef80f231843c93baa9947bc5.zip
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 'include/linux/genetlink.h')
-rw-r--r--include/linux/genetlink.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/genetlink.h b/include/linux/genetlink.h
index b834ef6d59fa..61549b26ad6f 100644
--- a/include/linux/genetlink.h
+++ b/include/linux/genetlink.h
@@ -80,4 +80,12 @@ enum {
#define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1)
+#ifdef __KERNEL__
+
+/* All generic netlink requests are serialized by a global lock. */
+extern void genl_lock(void);
+extern void genl_unlock(void);
+
+#endif /* __KERNEL__ */
+
#endif /* __LINUX_GENERIC_NETLINK_H */