Lines Matching refs:argp
48 msg.argp = argp; \
62 void *argp;
1377 static u8_t lwip_ioctl_impl(const struct lwip_sock *sock, long cmd, void *argp)
1384 struct ifreq *ifr = (struct ifreq *)argp;
1387 struct rtentry *rmten = (struct rtentry *)argp;
1580 return lwip_ioctl_impl(msg->sock, msg->cmd, msg->argp);
1585 static int do_ioctl_SIOCGIFCONF(int sockfd, long cmd, void *argp)
1592 if (LOS_ArchCopyFromUser(&ifc, argp, sizeof(struct ifconf)) != 0) {
1623 if (LOS_ArchCopyToUser(argp, &ifc, sizeof(struct ifconf)) != 0) {
1630 int socks_ioctl(int sockfd, long cmd, void *argp)
1632 void *argpbak = argp;
1636 if (LOS_IsUserAddress((VADDR_T)(uintptr_t)argp)) {
1646 return do_ioctl_SIOCGIFCONF(sockfd, cmd, argp);
1672 if (argp != NULL && nbytes > 0) {
1673 argp = malloc(nbytes);
1674 if (argp == NULL) {
1678 if (LOS_ArchCopyFromUser(argp, argpbak, nbytes) != 0) {
1679 free(argp);
1685 ret = lwip_ioctl(sockfd, cmd, argp);
1686 if (ret == 0 && argp != argpbak) {
1687 if (LOS_ArchCopyToUser(argpbak, argp, nbytes) != 0) {
1693 if (argp != argpbak) {
1694 free(argp);