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 …]
524 #define SMOD_INC_REF(smodp) { \ argument525 ASSERT((smodp) != NULL); \526 DTRACE_PROBE1(smodinfo__inc__ref, struct smod_info *, (smodp)); \527 atomic_inc_uint(&(smodp)->smod_refcnt); \536 #define SMOD_DEC_REF(smodp, modname) { \ argument537 ASSERT((smodp) != NULL); \538 ASSERT((smodp)->smod_refcnt != 0); \539 atomic_dec_uint(&(smodp)->smod_refcnt); \546 if ((smodp)->smod_refcnt == 0) \
6787 smod_info_t *smodp; in sotpi_smod_create() local6789 smodp = kmem_zalloc(sizeof (*smodp), KM_SLEEP); in sotpi_smod_create()6790 smodp->smod_name = kmem_alloc(sizeof (SOTPI_SMOD_NAME), KM_SLEEP); in sotpi_smod_create()6791 (void) strcpy(smodp->smod_name, SOTPI_SMOD_NAME); in sotpi_smod_create()6795 smodp->smod_refcnt = 1; in sotpi_smod_create()6796 smodp->smod_uc_version = SOCK_UC_VERSION; in sotpi_smod_create()6797 smodp->smod_dc_version = SOCK_DC_VERSION; in sotpi_smod_create()6798 smodp->smod_sock_create_func = &sotpi_create; in sotpi_smod_create()6799 smodp->smod_sock_destroy_func = &sotpi_destroy; in sotpi_smod_create()6800 return (smodp); in sotpi_smod_create()