Searched refs:smodp (Results 1 – 3 of 3) sorted by relevance
56 smod_info_t *smodp; in smod_find() local60 for (smodp = list_head(&smod_list); smodp != NULL; in smod_find()61 smodp = list_next(&smod_list, smodp)) in smod_find()62 if (strcmp(smodp->smod_name, modname) == 0) in smod_find()63 return (smodp); in smod_find()73 smod_info_t *smodp; in smod_register() local90 if ((smodp = smod_find(reg->smod_name)) != NULL) { in smod_register()97 smodp = smod_create(reg->smod_name); in smod_register()98 smodp->smod_version = reg->smod_version; in smod_register()99 if (strcmp(smodp->smod_name, SOTPI_SMOD_NAME) == 0 || in smod_register()[all …]
531 #define SMOD_INC_REF(smodp) { \ argument532 ASSERT((smodp) != NULL); \533 DTRACE_PROBE1(smodinfo__inc__ref, struct smod_info *, (smodp)); \534 atomic_inc_uint(&(smodp)->smod_refcnt); \543 #define SMOD_DEC_REF(smodp, modname) { \ argument544 ASSERT((smodp) != NULL); \545 ASSERT((smodp)->smod_refcnt != 0); \546 atomic_dec_uint(&(smodp)->smod_refcnt); \553 if ((smodp)->smod_refcnt == 0) \
6701 smod_info_t *smodp; in sotpi_smod_create() local6703 smodp = kmem_zalloc(sizeof (*smodp), KM_SLEEP); in sotpi_smod_create()6704 smodp->smod_name = kmem_alloc(sizeof (SOTPI_SMOD_NAME), KM_SLEEP); in sotpi_smod_create()6705 (void) strcpy(smodp->smod_name, SOTPI_SMOD_NAME); in sotpi_smod_create()6709 smodp->smod_refcnt = 1; in sotpi_smod_create()6710 smodp->smod_uc_version = SOCK_UC_VERSION; in sotpi_smod_create()6711 smodp->smod_dc_version = SOCK_DC_VERSION; in sotpi_smod_create()6712 smodp->smod_sock_create_func = &sotpi_create; in sotpi_smod_create()6713 smodp->smod_sock_destroy_func = &sotpi_destroy; in sotpi_smod_create()6714 return (smodp); in sotpi_smod_create()