Home
last modified time | relevance | path

Searched refs:ifc (Results 1 – 2 of 2) sorted by relevance

/net/core/
Ddev_ioctl.c70 struct ifconf ifc; in dev_ifconf() local
81 if (copy_from_user(&ifc, arg, sizeof(struct ifconf))) in dev_ifconf()
84 pos = ifc.ifc_buf; in dev_ifconf()
85 len = ifc.ifc_len; in dev_ifconf()
111 ifc.ifc_len = total; in dev_ifconf()
116 return copy_to_user(arg, &ifc, sizeof(struct ifconf)) ? -EFAULT : 0; in dev_ifconf()
/net/
Dsocket.c2646 struct ifconf ifc; in dev_ifconf() local
2656 memset(&ifc, 0, sizeof(ifc)); in dev_ifconf()
2659 ifc.ifc_len = 0; in dev_ifconf()
2660 ifc.ifc_req = NULL; in dev_ifconf()
2666 ifc.ifc_len = len; in dev_ifconf()
2667 ifr = ifc.ifc_req = (void __user *)(uifc + 1); in dev_ifconf()
2676 if (copy_to_user(uifc, &ifc, sizeof(struct ifconf))) in dev_ifconf()
2683 if (copy_from_user(&ifc, uifc, sizeof(struct ifconf))) in dev_ifconf()
2686 ifr = ifc.ifc_req; in dev_ifconf()
2689 i + sizeof(struct compat_ifreq) <= ifc32.ifc_len && j < ifc.ifc_len; in dev_ifconf()
[all …]