item->size = KDBUS_ITEM_HEADER_SIZE + sizeof(struct kdbus_memfd);
item->memfd.size = sizeof(now_ns);
item->memfd.fd = memfd;
- item = KDBUS_ITEM_NEXT(item);
}
ret = ioctl(conn->fd, KDBUS_CMD_MSG_SEND, msg);
ASSERT_RETURN_VAL(ret == 0, -errno);
msg = (struct kdbus_msg *)(conn->buf + recv.offset);
- item = msg->items;
KDBUS_ITEM_FOREACH(item, msg, items) {
switch (item->type) {
item->type = KDBUS_ITEM_FDS;
item->size = KDBUS_ITEM_HEADER_SIZE + sizeof(int);
item->fds[0] = fd;
- item = KDBUS_ITEM_NEXT(item);
ret = ioctl(conn->fd, KDBUS_CMD_MSG_SEND, msg);
if (ret) {