H A D | if_clone.c | 112 static void if_clone_free(struct if_clone *ifc); 113 static int if_clone_createif_nl(struct if_clone *ifc, const char *name, 116 static int ifc_simple_match(struct if_clone *ifc, const char *name); 117 static int ifc_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit); 122 static int ifc_simple_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen, 124 static int ifc_advanced_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen, 140 #define IF_CLONE_LOCK_INIT(ifc) \ argument 141 mtx_init(&(ifc)->ifc_mtx, "if_clone lock", NULL, MTX_DEF) 142 #define IF_CLONE_LOCK_DESTROY(ifc) mtx_destroy(&(ifc) argument 143 IF_CLONE_LOCK_ASSERT(ifc) global() argument 144 IF_CLONE_LOCK(ifc) global() argument 145 IF_CLONE_UNLOCK(ifc) global() argument 147 IF_CLONE_ADDREF(ifc) global() argument 153 IF_CLONE_ADDREF_LOCKED(ifc) global() argument 160 IF_CLONE_REMREF(ifc) global() argument 165 IF_CLONE_REMREF_LOCKED(ifc) global() argument 199 struct if_clone *ifc = ifc_find_cloner_match(name); ifc_create_ifp() local 221 struct if_clone *ifc = ifc_find_cloner_match(name); ifc_create_ifp_nl() local 249 struct if_clone *ifc = ifc_find_cloner(ifp->if_dname); ifc_modify_ifp_nl() local 262 struct if_clone *ifc = ifc_find_cloner(ifp->if_dname); ifc_dump_ifp_nl() local 271 ifc_create_ifp_nl_default(struct if_clone * ifc,char * name,size_t len,struct ifc_data_nl * ifd) ifc_create_ifp_nl_default() argument 303 ifc_link_ifp(struct if_clone * ifc,struct ifnet * ifp) ifc_link_ifp() argument 314 if_clone_addif(struct if_clone * ifc,struct ifnet * ifp) if_clone_addif() argument 320 ifc_unlink_ifp(struct if_clone * ifc,struct ifnet * ifp) ifc_unlink_ifp() argument 342 struct if_clone *ifc; ifc_find_cloner_match() local 357 struct if_clone *ifc; ifc_find_cloner() local 374 struct if_clone *ifc = ifc_find_cloner(name); ifc_find_cloner_in_vnet() local 384 if_clone_createif_nl(struct if_clone * ifc,const char * ifname,struct ifc_data_nl * ifd) if_clone_createif_nl() argument 425 struct if_clone *ifc; if_clone_destroy() local 447 if_clone_destroyif_flags(struct if_clone * ifc,struct ifnet * ifp,uint32_t flags) if_clone_destroyif_flags() argument 475 if_clone_destroyif(struct if_clone * ifc,struct ifnet * ifp) if_clone_destroyif() argument 483 struct if_clone *ifc; if_clone_alloc() local 503 if_clone_attach(struct if_clone * ifc) if_clone_attach() argument 529 struct if_clone *ifc = if_clone_alloc(name, req->maxunit); ifc_attach_cloner() local 554 ifc_detach_cloner(struct if_clone * ifc) ifc_detach_cloner() argument 563 ifc_advanced_create_wrapper(struct if_clone * ifc,char * name,size_t maxlen,struct ifc_data * ifc_data,struct ifnet ** ifpp) ifc_advanced_create_wrapper() argument 574 ifc_advanced_destroy_wrapper(struct if_clone * ifc,struct ifnet * ifp,uint32_t flags) ifc_advanced_destroy_wrapper() argument 585 struct if_clone *ifc; if_clone_advanced() local 603 ifc_simple_create_wrapper(struct if_clone * ifc,char * name,size_t maxlen,struct ifc_data * ifc_data,struct ifnet ** ifpp) ifc_simple_create_wrapper() argument 616 ifc_simple_destroy_wrapper(struct if_clone * ifc,struct ifnet * ifp,uint32_t flags) ifc_simple_destroy_wrapper() argument 629 struct if_clone *ifc; if_clone_simple() local 666 if_clone_detach(struct if_clone * ifc) if_clone_detach() argument 682 if_clone_free(struct if_clone * ifc) if_clone_free() argument 700 struct if_clone *ifc; if_clone_list() local 759 struct if_clone *ifc; if_clone_restoregroup() local 825 ifc_alloc_unit_specific(struct if_clone * ifc,int * unit) ifc_alloc_unit_specific() argument 847 ifc_alloc_unit_next(struct if_clone * ifc,int * unit) ifc_alloc_unit_next() argument 868 ifc_alloc_unit(struct if_clone * ifc,int * unit) ifc_alloc_unit() argument 877 ifc_free_unit(struct if_clone * ifc,int unit) ifc_free_unit() argument 885 ifc_simple_match(struct if_clone * ifc,const char * name) ifc_simple_match() argument 906 ifc_handle_unit(struct if_clone * ifc,char * name,size_t len,int * punit) ifc_handle_unit() argument [all...] |