Home
last modified time | relevance | path

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

/net/core/
Ddev_ioctl.c69 struct ifconf ifc; in dev_ifconf() local
80 if (copy_from_user(&ifc, arg, sizeof(struct ifconf))) in dev_ifconf()
83 pos = ifc.ifc_buf; in dev_ifconf()
84 len = ifc.ifc_len; in dev_ifconf()
110 ifc.ifc_len = total; in dev_ifconf()
115 return copy_to_user(arg, &ifc, sizeof(struct ifconf)) ? -EFAULT : 0; in dev_ifconf()
/net/
Dsocket.c2746 struct ifconf ifc; in dev_ifconf() local
2756 memset(&ifc, 0, sizeof(ifc)); in dev_ifconf()
2759 ifc.ifc_len = 0; in dev_ifconf()
2760 ifc.ifc_req = NULL; in dev_ifconf()
2766 ifc.ifc_len = len; in dev_ifconf()
2767 ifr = ifc.ifc_req = (void __user *)(uifc + 1); in dev_ifconf()
2776 if (copy_to_user(uifc, &ifc, sizeof(struct ifconf))) in dev_ifconf()
2783 if (copy_from_user(&ifc, uifc, sizeof(struct ifconf))) in dev_ifconf()
2786 ifr = ifc.ifc_req; in dev_ifconf()
2789 i + sizeof(struct compat_ifreq) <= ifc32.ifc_len && j < ifc.ifc_len; in dev_ifconf()
[all …]