Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_share.c1362 smb_share_t *cache_ent; in smb_shr_cache_addent() local
1365 if ((cache_ent = malloc(sizeof (smb_share_t))) == NULL) in smb_shr_cache_addent()
1374 si->shr_type |= smb_shr_is_special(cache_ent->shr_name); in smb_shr_cache_addent()
1376 if (smb_shr_is_admin(cache_ent->shr_name)) in smb_shr_cache_addent()
1379 bcopy(si, cache_ent, sizeof (smb_share_t)); in smb_shr_cache_addent()
1382 cache_ent->shr_refcnt = 1; in smb_shr_cache_addent()
1384 if (ht_add_item(smb_shr_cache.sc_cache, cache_ent->shr_name, cache_ent) in smb_shr_cache_addent()
1387 cache_ent->shr_name); in smb_shr_cache_addent()
1388 free(cache_ent); in smb_shr_cache_addent()