Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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 */
15extern const struct nla_policy psp_keys_nl_policy[PSP_A_KEYS_SPI + 1];
16
17int psp_device_get_locked(const struct genl_split_ops *ops,
18 struct sk_buff *skb, struct genl_info *info);
19int psp_assoc_device_get_locked(const struct genl_split_ops *ops,
20 struct sk_buff *skb, struct genl_info *info);
21void
22psp_device_unlock(const struct genl_split_ops *ops, struct sk_buff *skb,
23 struct genl_info *info);
24
25int psp_nl_dev_get_doit(struct sk_buff *skb, struct genl_info *info);
26int psp_nl_dev_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
27int psp_nl_dev_set_doit(struct sk_buff *skb, struct genl_info *info);
28int psp_nl_key_rotate_doit(struct sk_buff *skb, struct genl_info *info);
29int psp_nl_rx_assoc_doit(struct sk_buff *skb, struct genl_info *info);
30int psp_nl_tx_assoc_doit(struct sk_buff *skb, struct genl_info *info);
31
32enum {
33 PSP_NLGRP_MGMT,
34 PSP_NLGRP_USE,
35};
36
37extern struct genl_family psp_nl_family;
38
39#endif /* _LINUX_PSP_GEN_H */