Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
482a8524 TG |
2 | #ifndef __LINUX_GENERIC_NETLINK_H |
3 | #define __LINUX_GENERIC_NETLINK_H | |
4 | ||
607ca46e | 5 | #include <uapi/linux/genetlink.h> |
482a8524 | 6 | |
f408e0ce JC |
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 | ||
ee1c2442 JB |
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 | ||
e9412c37 NH |
16 | #define MODULE_ALIAS_GENL_FAMILY(family)\ |
17 | MODULE_ALIAS_NET_PF_PROTO_NAME(PF_NETLINK, NETLINK_GENERIC, "-family-" family) | |
18 | ||
482a8524 | 19 | #endif /* __LINUX_GENERIC_NETLINK_H */ |