1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LINUX_GENERIC_NETLINK_H
3 #define __LINUX_GENERIC_NETLINK_H
4 
5 #include <uapi/linux/genetlink.h>
6 
7 
8 /* All generic netlink requests are serialized by a global lock.  */
9 extern void genl_lock(void);
10 extern void genl_unlock(void);
11 
12 /* for synchronisation between af_netlink and genetlink */
13 extern atomic_t genl_sk_destructing_cnt;
14 extern wait_queue_head_t genl_sk_destructing_waitq;
15 
16 #define MODULE_ALIAS_GENL_FAMILY(family)\
17  MODULE_ALIAS_NET_PF_PROTO_NAME(PF_NETLINK, NETLINK_GENERIC, "-family-" family)
18 
19 #endif	/* __LINUX_GENERIC_NETLINK_H */
20