Lines Matching refs: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);
2925 * bpf_dynptr_slice() - Obtain a read-only pointer to the dynptr data.
2926 * @p: The dynptr whose data slice to retrieve
2927 * @offset: Offset into the dynptr
2947 * Return: NULL if the call failed (eg invalid dynptr), pointer to a read-only
2995 WARN_ONCE(true, "unknown dynptr type %d\n", type);
3001 * bpf_dynptr_slice_rdwr() - Obtain a writable pointer to the dynptr data.
3002 * @p: The dynptr whose data slice to retrieve
3003 * @offset: Offset into the dynptr
3013 * The returned pointer is writable and may point to either directly the dynptr
3020 * struct eth_hdr *eth = bpf_dynptr_slice_rdwr(&dynptr, 0, buffer, sizeof(buffer));
3037 * Return: NULL if the call failed (eg invalid dynptr), pointer to a
3138 * bpf_dynptr_copy() - Copy data from one dynptr to another.
3139 * @dst_ptr: Destination dynptr - where data should be copied to
3140 * @dst_off: Offset into the destination dynptr
3141 * @src_ptr: Source dynptr - where data should be copied from
3142 * @src_off: Offset into the source dynptr
3145 * Copies data from source dynptr to destination dynptr.
3193 * bpf_dynptr_memset() - Fill dynptr memory with a constant byte.
3194 * @p: Destination dynptr - where data will be filled
3195 * @offset: Offset into the dynptr to start filling from
3224 /* Non-linear data under the dynptr, write from a local buffer */
4606 __bpf_kfunc int bpf_dynptr_file_discard(struct bpf_dynptr *dynptr)
4608 struct bpf_dynptr_kern *ptr = (struct bpf_dynptr_kern *)dynptr;
4899 /* Get a pointer to dynptr data up to len bytes for read only access. If
4900 * the dynptr doesn't have continuous data up to len bytes, return NULL.
4909 /* Get a pointer to dynptr data up to len bytes for read write access. If
4910 * the dynptr doesn't have continuous data up to len bytes, or the dynptr