0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef _SMC_NETLINK_H
0013 #define _SMC_NETLINK_H
0014
0015 #include <net/netlink.h>
0016 #include <net/genetlink.h>
0017
0018 extern struct genl_family smc_gen_nl_family;
0019
0020 extern const struct nla_policy smc_gen_ueid_policy[];
0021
0022 struct smc_nl_dmp_ctx {
0023 int pos[3];
0024 };
0025
0026 static inline struct smc_nl_dmp_ctx *smc_nl_dmp_ctx(struct netlink_callback *c)
0027 {
0028 return (struct smc_nl_dmp_ctx *)c->ctx;
0029 }
0030
0031 int smc_nl_init(void) __init;
0032 void smc_nl_exit(void);
0033
0034 #endif