Lines Matching defs:dynptr
1760 /* Since the upper 8 bits of dynptr->size is reserved, the
1915 * copy the data. E.g. bpf_dynptr_from_mem may create two dynptr
1930 WARN_ONCE(true, "bpf_dynptr_read: unknown dynptr type %d\n", type);
1973 * copy the data. E.g. bpf_dynptr_from_mem may create two dynptr
1989 WARN_ONCE(true, "bpf_dynptr_write: unknown dynptr type %d\n", type);
2038 WARN_ONCE(true, "bpf_dynptr_data: unknown dynptr type %d\n", type);
3024 * bpf_dynptr_slice() - Obtain a read-only pointer to the dynptr data.
3025 * @p: The dynptr whose data slice to retrieve
3026 * @offset: Offset into the dynptr
3046 * Return: NULL if the call failed (eg invalid dynptr), pointer to a read-only
3094 WARN_ONCE(true, "unknown dynptr type %d\n", type);
3100 * bpf_dynptr_slice_rdwr() - Obtain a writable pointer to the dynptr data.
3101 * @p: The dynptr whose data slice to retrieve
3102 * @offset: Offset into the dynptr
3112 * The returned pointer is writable and may point to either directly the dynptr
3119 * struct eth_hdr *eth = bpf_dynptr_slice_rdwr(&dynptr, 0, buffer, sizeof(buffer));
3136 * Return: NULL if the call failed (eg invalid dynptr), pointer to a
3237 * bpf_dynptr_copy() - Copy data from one dynptr to another.
3238 * @dst_ptr: Destination dynptr - where data should be copied to
3239 * @dst_off: Offset into the destination dynptr
3240 * @src_ptr: Source dynptr - where data should be copied from
3241 * @src_off: Offset into the source dynptr
3244 * Copies data from source dynptr to destination dynptr.
3292 * bpf_dynptr_memset() - Fill dynptr memory with a constant byte.
3293 * @p: Destination dynptr - where data will be filled
3294 * @offset: Offset into the dynptr to start filling from
3323 /* Non-linear data under the dynptr, write from a local buffer */
4710 __bpf_kfunc int bpf_dynptr_file_discard(struct bpf_dynptr *dynptr)
4712 struct bpf_dynptr_kern *ptr = (struct bpf_dynptr_kern *)dynptr;
5008 /* Get a pointer to dynptr data up to len bytes for read only access. If
5009 * the dynptr doesn't have continuous data up to len bytes, return NULL.
5018 /* Get a pointer to dynptr data up to len bytes for read write access. If
5019 * the dynptr doesn't have continuous data up to len bytes, or the dynptr