Searched refs:smodp (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/uts/common/io/ |
H A D | sock_conf.c | 56 smod_info_t *smodp; in smod_find() local 60 for (smodp = list_head(&smod_list); smodp != NULL; in smod_find() 61 smodp = list_next(&smod_list, smodp)) in smod_find() 63 return (smodp); in smod_find() 73 smod_info_t *smodp; in smod_register() local 135 smod_add(smodp); in smod_register() 177 smodp = kmem_zalloc(sizeof (*smodp), KM_SLEEP); in smod_create() 182 return (smodp); in smod_create() 196 kmem_free(smodp->smod_name, strlen(smodp->smod_name) + 1); in smod_destroy() 201 kmem_free(smodp, sizeof (*smodp)); in smod_destroy() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | socketvar.h | 531 #define SMOD_INC_REF(smodp) { \ argument 532 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) { \ argument 544 ASSERT((smodp) != NULL); \ 545 ASSERT((smodp)->smod_refcnt != 0); \ 546 atomic_dec_uint(&(smodp)->smod_refcnt); \ 553 if ((smodp)->smod_refcnt == 0) \
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socktpi.c | 6695 smod_info_t *smodp; in sotpi_smod_create() local 6697 smodp = kmem_zalloc(sizeof (*smodp), KM_SLEEP); in sotpi_smod_create() 6698 smodp->smod_name = kmem_alloc(sizeof (SOTPI_SMOD_NAME), KM_SLEEP); in sotpi_smod_create() 6699 (void) strcpy(smodp->smod_name, SOTPI_SMOD_NAME); in sotpi_smod_create() 6703 smodp->smod_refcnt = 1; in sotpi_smod_create() 6704 smodp->smod_uc_version = SOCK_UC_VERSION; in sotpi_smod_create() 6705 smodp->smod_dc_version = SOCK_DC_VERSION; in sotpi_smod_create() 6706 smodp->smod_sock_create_func = &sotpi_create; in sotpi_smod_create() 6707 smodp->smod_sock_destroy_func = &sotpi_destroy; in sotpi_smod_create() 6708 return (smodp); in sotpi_smod_create()
|