Lines Matching refs:msg
34 static inline int *bpf_map_set_init(struct bpf_map_set_msg *msg, in bpf_map_set_init() argument
41 msg->iov.iov_base = &msg->aux; in bpf_map_set_init()
42 msg->iov.iov_len = sizeof(msg->aux); in bpf_map_set_init()
44 msg->hdr.msg_iov = &msg->iov; in bpf_map_set_init()
45 msg->hdr.msg_iovlen = 1; in bpf_map_set_init()
47 msg->hdr.msg_name = (struct sockaddr *)addr; in bpf_map_set_init()
48 msg->hdr.msg_namelen = addr_len; in bpf_map_set_init()
50 BUILD_BUG_ON(sizeof(msg->msg_buf) < cmsg_ctl_len); in bpf_map_set_init()
51 msg->hdr.msg_control = &msg->msg_buf; in bpf_map_set_init()
52 msg->hdr.msg_controllen = cmsg_ctl_len; in bpf_map_set_init()
54 cmsg = CMSG_FIRSTHDR(&msg->hdr); in bpf_map_set_init()
55 cmsg->cmsg_len = msg->hdr.msg_controllen; in bpf_map_set_init()
62 static inline void bpf_map_set_init_single(struct bpf_map_set_msg *msg, in bpf_map_set_init_single() argument
67 msg->hdr.msg_controllen = CMSG_LEN(sizeof(int) * num); in bpf_map_set_init_single()
68 msg->iov.iov_len = offsetof(struct bpf_map_aux, ent) + in bpf_map_set_init_single()
71 cmsg = CMSG_FIRSTHDR(&msg->hdr); in bpf_map_set_init_single()
72 cmsg->cmsg_len = msg->hdr.msg_controllen; in bpf_map_set_init_single()