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_cap_pre_doit(const struct genl_split_ops *ops, 22 struct sk_buff *skb, struct genl_info *info); 23 void 24 net_shaper_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb, 25 struct genl_info *info); 26 void 27 net_shaper_nl_cap_post_doit(const struct genl_split_ops *ops, 28 struct sk_buff *skb, struct genl_info *info); 29 int net_shaper_nl_pre_dumpit(struct netlink_callback *cb); 30 int net_shaper_nl_cap_pre_dumpit(struct netlink_callback *cb); 31 int net_shaper_nl_post_dumpit(struct netlink_callback *cb); 32 int net_shaper_nl_cap_post_dumpit(struct netlink_callback *cb); 33 34 int net_shaper_nl_get_doit(struct sk_buff *skb, struct genl_info *info); 35 int net_shaper_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb); 36 int net_shaper_nl_set_doit(struct sk_buff *skb, struct genl_info *info); 37 int net_shaper_nl_delete_doit(struct sk_buff *skb, struct genl_info *info); 38 int net_shaper_nl_group_doit(struct sk_buff *skb, struct genl_info *info); 39 int net_shaper_nl_cap_get_doit(struct sk_buff *skb, struct genl_info *info); 40 int net_shaper_nl_cap_get_dumpit(struct sk_buff *skb, 41 struct netlink_callback *cb); 42 43 extern struct genl_family net_shaper_nl_family; 44 45 #endif /* _LINUX_NET_SHAPER_GEN_H */ 46