Lines Matching refs:ifc
943 struct if_clone *ifc;
946 ifc = if_clone_lookup(name, &unit);
947 if (ifc == NULL)
953 return (*ifc->ifc_create)(ifc, unit);
962 struct if_clone *ifc;
965 ifc = if_clone_lookup(name, NULL);
966 if (ifc == NULL)
973 if (ifc->ifc_destroy == NULL)
976 return (*ifc->ifc_destroy)(ifp);
985 struct if_clone *ifc;
998 LIST_FOREACH(ifc, &if_cloners, ifc_list) {
999 if (strlen(ifc->ifc_name) == cp - name &&
1000 strncmp(name, ifc->ifc_name, cp - name) == 0)
1004 if (ifc == NULL)
1018 return ifc;
1025 if_clone_attach(struct if_clone *ifc)
1028 LIST_INSERT_HEAD(&if_cloners, ifc, ifc_list);
1036 if_clone_detach(struct if_clone *ifc)
1039 LIST_REMOVE(ifc, ifc_list);
1050 struct if_clone *ifc;
1065 for (ifc = LIST_FIRST(&if_cloners); ifc != NULL && count != 0;
1066 ifc = LIST_NEXT(ifc, ifc_list), count--, dst += IFNAMSIZ) {
1067 (void)strncpy(outbuf, ifc->ifc_name, sizeof(outbuf));
1998 struct ifconf *ifc = (struct ifconf *)data;
2005 if ((ifrp = ifc->ifc_req) == NULL)
2008 space = ifc->ifc_len;
2049 KASSERT(0 <= space && space <= ifc->ifc_len);
2050 ifc->ifc_len -= space;
2053 ifc->ifc_len = space;