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 6 #ifndef _LINUX_NET_SHAPER_GEN_H 7 #define _LINUX_NET_SHAPER_GEN_H 8 9 #include <net/netlink.h> 10 #include <net/genetlink.h> 11 12 #include <uapi/linux/net_shaper.h> 13 14 /* Common nested types */ 15 extern const struct nla_policy net_shaper_handle_nl_policy[NET_SHAPER_A_HANDLE_ID + 1]; 16 extern const struct nla_policy net_shaper_leaf_info_nl_policy[NET_SHAPER_A_WEIGHT + 1]; 17 18 int net_shaper_nl_pre_doit(const struct genl_split_ops *ops, 19 struct sk_buff *skb, struct genl_info *info); 20 int net_shaper_nl_cap_pre_doit(const struct genl_split_ops *ops, 21 struct sk_buff *skb, struct genl_info *info); 22 void 23 net_shaper_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb, 24 struct genl_info *info); 25 void 26 net_shaper_nl_cap_post_doit(const struct genl_split_ops *ops, 27 struct sk_buff *skb, struct genl_info *info); 28 int net_shaper_nl_pre_dumpit(struct netlink_callback *cb); 29 int net_shaper_nl_cap_pre_dumpit(struct netlink_callback *cb); 30 int net_shaper_nl_post_dumpit(struct netlink_callback *cb); 31 int net_shaper_nl_cap_post_dumpit(struct netlink_callback *cb); 32 33 int net_shaper_nl_get_doit(struct sk_buff *skb, struct genl_info *info); 34 int net_shaper_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb); 35 int net_shaper_nl_set_doit(struct sk_buff *skb, struct genl_info *info); 36 int net_shaper_nl_delete_doit(struct sk_buff *skb, struct genl_info *info); 37 int net_shaper_nl_group_doit(struct sk_buff *skb, struct genl_info *info); 38 int net_shaper_nl_cap_get_doit(struct sk_buff *skb, struct genl_info *info); 39 int net_shaper_nl_cap_get_dumpit(struct sk_buff *skb, 40 struct netlink_callback *cb); 41 42 extern struct genl_family net_shaper_nl_family; 43 44 #endif /* _LINUX_NET_SHAPER_GEN_H */ 45