diff options
| author | David Anderson <danderson@tailscale.com> | 2021-11-10 12:15:03 -0800 |
|---|---|---|
| committer | David Anderson <danderson@tailscale.com> | 2021-11-10 12:15:03 -0800 |
| commit | 41710e1b810aa25c14ceb657a40b9ba616615435 (patch) | |
| tree | 4953322c9930fde10dae9ff057de28827e87fb52 /ebpf/include/linux/rpmsg.h | |
| parent | 4a51050c498da33eaecb520b78aeb5f445a442f1 (diff) | |
| download | tailscale-danderson/ebpf.tar.xz tailscale-danderson/ebpf.zip | |
ebpf: experiments.danderson/ebpf
Diffstat (limited to 'ebpf/include/linux/rpmsg.h')
| -rw-r--r-- | ebpf/include/linux/rpmsg.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ebpf/include/linux/rpmsg.h b/ebpf/include/linux/rpmsg.h new file mode 100644 index 000000000..1c8fd472a --- /dev/null +++ b/ebpf/include/linux/rpmsg.h @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +/* + * Copyright (c) 2016, Linaro Ltd. + */ + +#ifndef _RPMSG_H_ +#define _RPMSG_H_ + +#include <linux/ioctl.h> +#include <linux/types.h> + +#define RPMSG_ADDR_ANY 0xFFFFFFFF + +/** + * struct rpmsg_endpoint_info - endpoint info representation + * @name: name of service + * @src: local address. To set to RPMSG_ADDR_ANY if not used. + * @dst: destination address. To set to RPMSG_ADDR_ANY if not used. + */ +struct rpmsg_endpoint_info { + char name[32]; + __u32 src; + __u32 dst; +}; + +/** + * Instantiate a new rmpsg char device endpoint. + */ +#define RPMSG_CREATE_EPT_IOCTL _IOW(0xb5, 0x1, struct rpmsg_endpoint_info) + +/** + * Destroy a rpmsg char device endpoint created by the RPMSG_CREATE_EPT_IOCTL. + */ +#define RPMSG_DESTROY_EPT_IOCTL _IO(0xb5, 0x2) + +#endif |
