Lines Matching refs:size
52 LIBBPF_API int libbpf_strerror(int err, char *buf, size_t size);
113 /* size of this struct, for forward/backward compatibility */
119 * name and will override default "<addr>-<buf-size>" name;
453 /* size of this struct, for forward/backward compatibility */
488 /* size of this struct, for forward/backward compatibility */
511 /* size of this struct, for forward/backward compatibility */
534 /* size of this struct, for forward/backward compatibility */
585 /* size of this struct, for forward/backward compatibility */
631 /* size of this struct, for forward/backward compatibility */
696 /* size of this struct, for forward/backward compatibility */
727 /* size of this struct, for forward/backward compatibility */
749 /* size of this struct, for forward/backward compatibility */
774 /* size of this struct, for forward/backward compatibility */
789 /* size of this struct, for forward/backward compatibility */
809 size_t sz; /* size of this struct for forward/backward compatibility */
942 /* get/set map size (max_entries) */
951 /* get/set map key size */
953 LIBBPF_API int bpf_map__set_key_size(struct bpf_map *map, __u32 size);
954 /* get map value size */
957 * @brief **bpf_map__set_value_size()** sets map value size.
970 LIBBPF_API int bpf_map__set_value_size(struct bpf_map *map, __u32 size);
982 const void *data, size_t size);
1054 * @param key_sz size in bytes of key data, needs to match BPF map definition's **key_size**
1056 * @param value_sz size in byte of value data memory; it has to match BPF map
1057 * definition's **value_size**. For per-CPU BPF maps value size has to be
1058 * a product of BPF map value size and number of possible CPUs in the system
1060 * per-CPU values value size has to be aligned up to closest 8 bytes for
1061 * alignment reasons, so expected size is: `round_up(value_size, 8)
1067 * **bpf_map_lookup_elem()** API with added check for key and value size.
1078 * @param key_sz size in bytes of key data, needs to match BPF map definition's **key_size**
1080 * @param value_sz size in byte of value data memory; it has to match BPF map
1081 * definition's **value_size**. For per-CPU BPF maps value size has to be
1082 * a product of BPF map value size and number of possible CPUs in the system
1084 * per-CPU values value size has to be aligned up to closest 8 bytes for
1085 * alignment reasons, so expected size is: `round_up(value_size, 8)
1091 * **bpf_map_update_elem()** API with added check for key and value size.
1102 * @param key_sz size in bytes of key data, needs to match BPF map definition's **key_size**
1107 * **bpf_map_delete_elem()** API with added check for key size.
1117 * @param key_sz size in bytes of key data, needs to match BPF map definition's **key_size**
1119 * @param value_sz size in byte of value data memory; it has to match BPF map
1120 * definition's **value_size**. For per-CPU BPF maps value size has to be
1121 * a product of BPF map value size and number of possible CPUs in the system
1123 * per-CPU values value size has to be aligned up to closest 8 bytes for
1124 * alignment reasons, so expected size is: `round_up(value_size, 8)
1130 * **bpf_map_lookup_and_delete_elem()** API with added check for key and value size.
1143 * @param key_sz size in bytes of key data, needs to match BPF map definition's **key_size**
1148 * **bpf_map_get_next_key()** API with added check for key size.
1234 typedef int (*ring_buffer_sample_fn)(void *ctx, void *data, size_t size);
1237 size_t sz; /* size of this struct, for forward/backward compatibility */
1253 size_t sz; /* size of this struct, for forward/backward compatibility */
1274 * @param size The size of the sample, in bytes.
1279 * this function if there are multiple producers. If a size is requested that
1280 * is larger than the size of the entire ring buffer, errno will be set to
1281 * E2BIG and NULL is returned. If the ring buffer could accommodate the size,
1289 LIBBPF_API void *user_ring_buffer__reserve(struct user_ring_buffer *rb, __u32 size);
1296 * @param size The size of the sample, in bytes.
1312 * If **size** is larger than the size of the entire ring buffer, errno is set
1314 * **size**, but currently does not have enough space, the caller will block
1327 * When a sample of size **size** is found within **timeout_ms**, a pointer to
1333 __u32 size,
1368 void *data, __u32 size);
1448 * @param buf_size (out) gets the size of the mmap()'ed region
1471 * the kernel to reach the maximal size of lockable memory allowed for the
1547 size_t sz; /* size of this struct, for forward/backward compatibility */
1579 size_t sz; /* size of this struct, for forward/backward compatibility */
1602 size_t sz; /* size of this struct, for forward/backward compatibility */
1620 /* size of this struct, for forward/backward compatibility */
1626 /* size of this struct, for forward/backward compatibility */
1669 /* size of this struct, for forward/backward compatibility */