Home
last modified time | relevance | path

Searched refs:retmsg (Results 1 – 12 of 12) sorted by relevance

/f-stack/tools/compat/
H A Drtioctl.c76 struct ff_msg *msg, *retmsg = NULL; in rtioctl() local
113 if (retmsg != NULL) { in rtioctl()
114 ff_ipc_msg_free(retmsg); in rtioctl()
116 ret = ff_ipc_recv(&retmsg, msg->msg_type); in rtioctl()
121 } while (msg != retmsg); in rtioctl()
123 if (retmsg->result == 0) { in rtioctl()
124 ret = retmsg->route.len; in rtioctl()
127 memcpy(data, retmsg->route.data, retmsg->route.len); in rtioctl()
131 errno = retmsg->result; in rtioctl()
H A Dsysctl.c37 struct ff_msg *msg, *retmsg = NULL; in sysctl() local
115 if (retmsg != NULL) { in sysctl()
116 ff_ipc_msg_free(retmsg); in sysctl()
118 ret = ff_ipc_recv(&retmsg, msg->msg_type); in sysctl()
123 } while (msg != retmsg); in sysctl()
125 if (retmsg->result == 0) { in sysctl()
127 if (oldlenp && retmsg->sysctl.oldlenp) { in sysctl()
128 *oldlenp = *retmsg->sysctl.oldlenp; in sysctl()
131 if (old && retmsg->sysctl.old && oldlenp) { in sysctl()
132 memcpy(old, retmsg->sysctl.old, *oldlenp); in sysctl()
[all …]
H A Dioctl.c52 struct ff_msg *msg, *retmsg = NULL; in ioctl_va() local
139 if (retmsg != NULL) { in ioctl_va()
140 ff_ipc_msg_free(retmsg); in ioctl_va()
142 ret = ff_ipc_recv(&retmsg, msg->msg_type); in ioctl_va()
147 } while (msg != retmsg); in ioctl_va()
149 if (retmsg->result == 0) { in ioctl_va()
153 memcpy(data, retmsg->ioctl.data, size); in ioctl_va()
155 memcpy(cpy_mem, retmsg->buf_addr, clen); in ioctl_va()
162 errno = retmsg->result; in ioctl_va()
/f-stack/tools/ipfw/
H A Dcompat.c38 struct ff_msg *msg, *retmsg = NULL; in ipfw_ctl() local
84 if (retmsg != NULL) { in ipfw_ctl()
85 ff_ipc_msg_free(retmsg); in ipfw_ctl()
87 ret = ff_ipc_recv(&retmsg, msg->msg_type); in ipfw_ctl()
92 } while (msg != retmsg); in ipfw_ctl()
94 if (retmsg->result != 0) { in ipfw_ctl()
96 errno = retmsg->result; in ipfw_ctl()
101 memcpy(optval, retmsg->ipfw.optval, *(retmsg->ipfw.optlen)); in ipfw_ctl()
102 memcpy(optlen, retmsg->ipfw.optlen, sizeof(socklen_t)); in ipfw_ctl()
/f-stack/tools/knictl/
H A Dknictl.c49 struct ff_msg *msg, *retmsg = NULL; in knictl_status() local
67 if (retmsg != NULL) { in knictl_status()
68 ff_ipc_msg_free(retmsg); in knictl_status()
71 ret = ff_ipc_recv(&retmsg, msg->msg_type); in knictl_status()
77 } while (msg != retmsg); in knictl_status()
79 *knictl = retmsg->knictl; in knictl_status()
/f-stack/tools/top/
H A Dtop.c15 struct ff_msg *msg, *retmsg = NULL; in cpu_status() local
32 if (retmsg != NULL) { in cpu_status()
33 ff_ipc_msg_free(retmsg); in cpu_status()
36 ret = ff_ipc_recv(&retmsg, msg->msg_type); in cpu_status()
41 } while (msg != retmsg); in cpu_status()
43 *top = retmsg->top; in cpu_status()
/f-stack/tools/traffic/
H A Dtraffic.c15 struct ff_msg *msg, *retmsg = NULL; in traffic_status() local
32 if (retmsg != NULL) { in traffic_status()
33 ff_ipc_msg_free(retmsg); in traffic_status()
36 ret = ff_ipc_recv(&retmsg, msg->msg_type); in traffic_status()
41 } while (msg != retmsg); in traffic_status()
43 *traffic = retmsg->traffic; in traffic_status()
/f-stack/tools/libnetgraph/
H A Dcompat.c41 struct ff_msg *msg, *retmsg = NULL; in ngctl() local
118 if (retmsg != NULL) { in ngctl()
119 ff_ipc_msg_free(retmsg); in ngctl()
121 ret = ff_ipc_recv(&retmsg, msg->msg_type); in ngctl()
126 } while (msg != retmsg); in ngctl()
128 if (retmsg->result != 0) { in ngctl()
130 errno = retmsg->result; in ngctl()
/f-stack/dpdk/drivers/net/vdev_netvsc/
H A Dvdev_netvsc.c235 struct nlmsghdr *retmsg = (struct nlmsghdr *)buf; in vdev_netvsc_has_route() local
282 while (NLMSG_OK(retmsg, (unsigned int)len)) { in vdev_netvsc_has_route()
284 (struct ifaddrmsg *)NLMSG_DATA(retmsg); in vdev_netvsc_has_route()
289 int attlen = IFA_PAYLOAD(retmsg); in vdev_netvsc_has_route()
301 retmsg = NLMSG_NEXT(retmsg, len); in vdev_netvsc_has_route()
/f-stack/dpdk/drivers/net/e1000/base/
H A De1000_vf.c358 u32 retmsg[E1000_VFMAILBOX_SIZE]; in e1000_write_msg_read_ack() local
362 mbx->ops.read_posted(hw, retmsg, E1000_VFMAILBOX_SIZE, 0); in e1000_write_msg_read_ack()
/f-stack/dpdk/drivers/net/ixgbe/base/
H A Dixgbe_vf.c296 u32 *retmsg, u16 size) in ixgbevf_write_msg_read_ack() argument
304 return mbx->ops.read_posted(hw, retmsg, size, 0); in ixgbevf_write_msg_read_ack()
/f-stack/tools/
H A DREADME.md370 struct ff_msg *retmsg;
371 ff_ipc_recv(retmsg, 0);