Lines Matching defs:if_clone

31  * $FreeBSD: releng/10.2/sys/net/if_clone.c 285824 2015-07-23 19:57:47Z hrs $
45 #include <net/if_clone.h>
63 struct if_clone {
94 LIST_ENTRY(if_clone) ifc_list; /* (e) On list of cloners */
97 static void if_clone_free(struct if_clone *ifc);
98 static int if_clone_createif(struct if_clone *ifc, char *name, size_t len,
101 static int ifc_simple_match(struct if_clone *, const char *);
102 static int ifc_simple_create(struct if_clone *, char *, size_t, caddr_t);
103 static int ifc_simple_destroy(struct if_clone *, struct ifnet *);
107 VNET_DEFINE(LIST_HEAD(, if_clone), if_cloners);
119 mtx_init(&(ifc)->ifc_mtx, "if_clone lock", NULL, MTX_DEF)
184 struct if_clone *ifc;
222 if_clone_createif(struct if_clone *ifc, char *name, size_t len, caddr_t params)
257 struct if_clone *ifc;
300 if_clone_destroyif(struct if_clone *ifc, struct ifnet *ifp)
346 static struct if_clone *
349 struct if_clone *ifc;
353 ifc = malloc(sizeof(struct if_clone), M_CLONE, M_WAITOK | M_ZERO);
365 if_clone_attach(struct if_clone *ifc)
367 struct if_clone *ifc1;
383 struct if_clone *
387 struct if_clone *ifc;
405 struct if_clone *
409 struct if_clone *ifc;
443 if_clone_detach(struct if_clone *ifc)
463 if_clone_free(struct if_clone *ifc)
481 struct if_clone *ifc;
532 struct if_clone *
535 struct if_clone *ifc, *ifc0;
563 if_clone_addgroup(struct ifnet *ifp, struct if_clone *ifc)
606 ifc_alloc_unit(struct if_clone *ifc, int *unit)
646 ifc_free_unit(struct if_clone *ifc, int unit)
654 ifc_simple_match(struct if_clone *ifc, const char *name)
675 ifc_simple_create(struct if_clone *ifc, char *name, size_t len, caddr_t params)
717 ifc_simple_destroy(struct if_clone *ifc, struct ifnet *ifp)