Home | History | Annotate | Download | only in bpf

Lines Matching refs:aux

125 static void bpf_info_loop(int *fds, struct bpf_map_aux *aux)
130 aux->uds_ver, aux->obj_name, aux->obj_st.st_dev,
131 aux->obj_st.st_ino, aux->num_ent);
133 for (i = 0; i < aux->num_ent; i++) {
136 printf(" | serial: %u\n", aux->ent[i].id);
137 printf(" | type: %u\n", aux->ent[i].type);
138 printf(" | max elem: %u\n", aux->ent[i].max_elem);
139 printf(" | size key: %u\n", aux->ent[i].size_key);
140 printf(" ` size val: %u\n", aux->ent[i].size_value);
142 tfd[aux->ent[i].id] = fds[i];
164 static int bpf_map_set_recv(int fd, int *fds, struct bpf_map_aux *aux,
172 amsg_buf = (char *)msg.aux.ent;
173 mmsg_buf = (char *)&msg.aux;
198 memcpy(&aux->ent[i], amsg_buf, sizeof(aux->ent[0]) * min_fd);
199 memcpy(aux, mmsg_buf, offsetof(struct bpf_map_aux, ent));
201 if (i + min_fd == aux->num_ent)
211 struct bpf_map_aux aux;
247 memset(&aux, 0, sizeof(aux));
249 ret = bpf_map_set_recv(fd, fds, &aux, BPF_SCM_MAX_FDS);
251 bpf_info_loop(fds, &aux);
253 for (i = 0; i < aux.num_ent; i++)