Lines Matching defs:if_clone

49 #include <net/if_clone.h>
66 struct if_clone {
98 LIST_ENTRY(if_clone) ifc_list; /* (e) On list of cloners */
101 static void if_clone_free(struct if_clone *ifc);
102 static int if_clone_createif(struct if_clone *ifc, char *name, size_t len,
105 static int ifc_simple_match(struct if_clone *, const char *);
106 static int ifc_simple_create(struct if_clone *, char *, size_t, caddr_t);
107 static int ifc_simple_destroy(struct if_clone *, struct ifnet *);
112 VNET_DEFINE(LIST_HEAD(, if_clone), if_cloners);
122 mtx_init(&(ifc)->ifc_mtx, "if_clone lock", NULL, MTX_DEF)
180 struct if_clone *ifc;
215 if_clone_addif(struct if_clone *ifc, struct ifnet *ifp)
230 if_clone_createif(struct if_clone *ifc, char *name, size_t len, caddr_t params)
261 struct if_clone *ifc;
304 if_clone_destroyif(struct if_clone *ifc, struct ifnet *ifp)
351 static struct if_clone *
354 struct if_clone *ifc;
358 ifc = malloc(sizeof(struct if_clone), M_CLONE, M_WAITOK | M_ZERO);
370 if_clone_attach(struct if_clone *ifc)
372 struct if_clone *ifc1;
388 struct if_clone *
392 struct if_clone *ifc;
408 struct if_clone *
412 struct if_clone *ifc;
444 if_clone_detach(struct if_clone *ifc)
464 if_clone_free(struct if_clone *ifc)
482 struct if_clone *ifc;
533 struct if_clone *
536 struct if_clone *ifc, *ifc0;
564 if_clone_addgroup(struct ifnet *ifp, struct if_clone *ifc)
609 ifc_alloc_unit_specific(struct if_clone *ifc, int *unit)
631 ifc_alloc_unit_next(struct if_clone *ifc, int *unit)
652 ifc_alloc_unit(struct if_clone *ifc, int *unit)
661 ifc_free_unit(struct if_clone *ifc, int unit)
669 ifc_simple_match(struct if_clone *ifc, const char *name)
690 ifc_simple_create(struct if_clone *ifc, char *name, size_t len, caddr_t params)
731 ifc_simple_destroy(struct if_clone *ifc, struct ifnet *ifp)
748 ifc_name(struct if_clone *ifc)
754 ifc_flags_set(struct if_clone *ifc, int flags)
760 ifc_flags_get(struct if_clone *ifc)