Home
last modified time | relevance | path

Searched refs:smodp (Results 1 – 3 of 3) sorted by relevance

/titanic_44/usr/src/uts/common/io/
H A Dsock_conf.c56 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()
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() local
90 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 …]
/titanic_44/usr/src/uts/common/sys/
H A Dsocketvar.h524 #define SMOD_INC_REF(smodp) { \ argument
525 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) { \ argument
537 ASSERT((smodp) != NULL); \
538 ASSERT((smodp)->smod_refcnt != 0); \
539 atomic_dec_uint(&(smodp)->smod_refcnt); \
546 if ((smodp)->smod_refcnt == 0) \
/titanic_44/usr/src/uts/common/fs/sockfs/
H A Dsocktpi.c6787 smod_info_t *smodp; in sotpi_smod_create() local
6789 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()