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/psp.yaml */ 4 /* YNL-GEN kernel header */ 5 6 #ifndef _LINUX_PSP_GEN_H 7 #define _LINUX_PSP_GEN_H 8 9 #include <net/netlink.h> 10 #include <net/genetlink.h> 11 12 #include <uapi/linux/psp.h> 13 14 /* Common nested types */ 15 extern const struct nla_policy psp_keys_nl_policy[PSP_A_KEYS_SPI + 1]; 16 17 int psp_device_get_locked(const struct genl_split_ops *ops, 18 struct sk_buff *skb, struct genl_info *info); 19 int psp_assoc_device_get_locked(const struct genl_split_ops *ops, 20 struct sk_buff *skb, struct genl_info *info); 21 void 22 psp_device_unlock(const struct genl_split_ops *ops, struct sk_buff *skb, 23 struct genl_info *info); 24 25 int psp_nl_dev_get_doit(struct sk_buff *skb, struct genl_info *info); 26 int psp_nl_dev_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb); 27 int psp_nl_dev_set_doit(struct sk_buff *skb, struct genl_info *info); 28 int psp_nl_key_rotate_doit(struct sk_buff *skb, struct genl_info *info); 29 int psp_nl_rx_assoc_doit(struct sk_buff *skb, struct genl_info *info); 30 int psp_nl_tx_assoc_doit(struct sk_buff *skb, struct genl_info *info); 31 32 enum { 33 PSP_NLGRP_MGMT, 34 PSP_NLGRP_USE, 35 }; 36 37 extern struct genl_family psp_nl_family; 38 39 #endif /* _LINUX_PSP_GEN_H */ 40