diff options
Diffstat (limited to 'include/uapi/linux/bpf.h')
| -rw-r--r-- | include/uapi/linux/bpf.h | 11 | 
1 files changed, 7 insertions, 4 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index f4009dbdf62d..ef78e0e1a754 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -5222,22 +5222,25 @@ union bpf_attr {   *	Return   *		Nothing. Always succeeds.   * - * long bpf_dynptr_read(void *dst, u32 len, struct bpf_dynptr *src, u32 offset) + * long bpf_dynptr_read(void *dst, u32 len, struct bpf_dynptr *src, u32 offset, u64 flags)   *	Description   *		Read *len* bytes from *src* into *dst*, starting from *offset*   *		into *src*. + *		*flags* is currently unused.   *	Return   *		0 on success, -E2BIG if *offset* + *len* exceeds the length - *		of *src*'s data, -EINVAL if *src* is an invalid dynptr. + *		of *src*'s data, -EINVAL if *src* is an invalid dynptr or if + *		*flags* is not 0.   * - * long bpf_dynptr_write(struct bpf_dynptr *dst, u32 offset, void *src, u32 len) + * long bpf_dynptr_write(struct bpf_dynptr *dst, u32 offset, void *src, u32 len, u64 flags)   *	Description   *		Write *len* bytes from *src* into *dst*, starting from *offset*   *		into *dst*. + *		*flags* is currently unused.   *	Return   *		0 on success, -E2BIG if *offset* + *len* exceeds the length   *		of *dst*'s data, -EINVAL if *dst* is an invalid dynptr or if *dst* - *		is a read-only dynptr. + *		is a read-only dynptr or if *flags* is not 0.   *   * void *bpf_dynptr_data(struct bpf_dynptr *ptr, u32 offset, u32 len)   *	Description  |