xref: /linux/net/shaper/shaper_nl_gen.h (revision 8d45d88e0b3d17c9f847cef8171c95c19d2cbdf5)
1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
2 /* Do not edit directly, auto-generated from: */
3 /*	Documentation/netlink/specs/net_shaper.yaml */
4 /* YNL-GEN kernel header */
5 /* To regenerate run: tools/net/ynl/ynl-regen.sh */
6 
7 #ifndef _LINUX_NET_SHAPER_GEN_H
8 #define _LINUX_NET_SHAPER_GEN_H
9 
10 #include <net/netlink.h>
11 #include <net/genetlink.h>
12 
13 #include <uapi/linux/net_shaper.h>
14 
15 /* Common nested types */
16 extern const struct nla_policy net_shaper_handle_nl_policy[NET_SHAPER_A_HANDLE_ID + 1];
17 extern const struct nla_policy net_shaper_leaf_info_nl_policy[NET_SHAPER_A_WEIGHT + 1];
18 
19 int net_shaper_nl_pre_doit(const struct genl_split_ops *ops,
20 			   struct sk_buff *skb, struct genl_info *info);
21 int net_shaper_nl_pre_doit_write(const struct genl_split_ops *ops,
22 				 struct sk_buff *skb, struct genl_info *info);
23 int net_shaper_nl_cap_pre_doit(const struct genl_split_ops *ops,
24 			       struct sk_buff *skb, struct genl_info *info);
25 void
26 net_shaper_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
27 			struct genl_info *info);
28 void
29 net_shaper_nl_post_doit_write(const struct genl_split_ops *ops,
30 			      struct sk_buff *skb, struct genl_info *info);
31 void
32 net_shaper_nl_cap_post_doit(const struct genl_split_ops *ops,
33 			    struct sk_buff *skb, struct genl_info *info);
34 int net_shaper_nl_pre_dumpit(struct netlink_callback *cb);
35 int net_shaper_nl_cap_pre_dumpit(struct netlink_callback *cb);
36 int net_shaper_nl_post_dumpit(struct netlink_callback *cb);
37 int net_shaper_nl_cap_post_dumpit(struct netlink_callback *cb);
38 
39 int net_shaper_nl_get_doit(struct sk_buff *skb, struct genl_info *info);
40 int net_shaper_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
41 int net_shaper_nl_set_doit(struct sk_buff *skb, struct genl_info *info);
42 int net_shaper_nl_delete_doit(struct sk_buff *skb, struct genl_info *info);
43 int net_shaper_nl_group_doit(struct sk_buff *skb, struct genl_info *info);
44 int net_shaper_nl_cap_get_doit(struct sk_buff *skb, struct genl_info *info);
45 int net_shaper_nl_cap_get_dumpit(struct sk_buff *skb,
46 				 struct netlink_callback *cb);
47 
48 extern struct genl_family net_shaper_nl_family;
49 
50 #endif /* _LINUX_NET_SHAPER_GEN_H */
51