dcnode
smb_domain_t *dcnode;
dcnode = list_head(&smb_dcache.dc_cache);
while (dcnode) {
found = (smb_strcasecmp(dcnode->di_nbname, name, 0) == 0) ||
(smb_strcasecmp(dcnode->di_fqname, name, 0) == 0);
*di = *dcnode;
if ((p = strchr(dcnode->di_fqname, '.')) != NULL) {
found = (smb_strcasecmp(dcnode->di_fqname, name,
*di = *dcnode;
dcnode = list_next(&smb_dcache.dc_cache, dcnode);
smb_domain_t *dcnode;
dcnode = list_head(&smb_dcache.dc_cache);
while (dcnode) {
found = (strcmp(dcnode->di_sid, sidstr) == 0);
*di = *dcnode;
dcnode = list_next(&smb_dcache.dc_cache, dcnode);
smb_domain_t *dcnode;
dcnode = list_head(&smb_dcache.dc_cache);
while (dcnode) {
if (dcnode->di_type == type) {
*di = *dcnode;
dcnode = list_next(&smb_dcache.dc_cache, dcnode);
smb_domain_t *dcnode;
dcnode = list_head(&smb_dcache.dc_cache);
while (dcnode) {
if ((dcnode->di_type == SMB_DOMAIN_PRIMARY) ||
(dcnode->di_type == SMB_DOMAIN_TRUSTED)) {
smb_dcache_remove(dcnode);
dcnode = list_head(&smb_dcache.dc_cache);
dcnode = list_next(&smb_dcache.dc_cache, dcnode);
for (i = 0, dcnode = dxi->d_trusted.td_domains;
i++, dcnode++) {
dcnode->di_type = SMB_DOMAIN_TRUSTED;
(void) smb_dcache_add(dcnode);
smb_domain_t *dcnode;
if ((dcnode = malloc(sizeof (smb_domain_t))) == NULL)
*dcnode = *di;
dcnode->di_binsid = smb_sid_fromstr(dcnode->di_sid);
if (dcnode->di_binsid == NULL) {
free(dcnode);
list_insert_tail(&smb_dcache.dc_cache, dcnode);
dcinsert(struct dcnode *newdp)
dcdelete(struct dcnode *deldp)
struct dcnode *dp, *prevdp;
static struct dcnode *
struct dcnode *dp;
struct dcnode *dp;
dclru_add(struct dcnode *dp)
struct dcnode *last = dclru->dc_lruprev;
dclru_sub(struct dcnode *dp)
struct dcnode *dctable[DCTABLESIZE];
struct dcnode *dclru;
static struct dcnode *dcnode_alloc(void);
static void dcnode_free(struct dcnode *);
static void dcnode_recycle(struct dcnode *);
static void dcinsert(struct dcnode *);
static void dcdelete(struct dcnode *);
static struct dcnode *dcfind(struct vnode *);
static void dclru_add(struct dcnode *);
static void dclru_sub(struct dcnode *);
struct dcnode *dp = VTODC(vp);
struct dcnode *dp = VTODC(vp);
struct dcnode *dp = VTODC(vp);
struct dcnode *dp = VTODC(vp);
struct dcnode *dp = VTODC(vp);
struct dcnode *dp = VTODC(vp);
struct dcnode *dp = VTODC(vp);
struct dcnode *dp = VTODC(vp);
struct dcnode *dp = VTODC(vp);
struct dcnode *dp = VTODC(vp);
struct dcnode *dp;
struct dcnode *dp;
struct dcnode *dp = buf;
struct dcnode *dp = buf;
static struct dcnode *
struct dcnode *dp;
dcnode_free(struct dcnode *dp)
dcnode_recycle(struct dcnode *dp)
dcnode_cache = kmem_cache_create("dcnode_cache", sizeof (struct dcnode),
struct dcnode *dp, *ndp;
struct dcnode *dc_hash;
struct dcnode *dc_lrunext;
struct dcnode *dc_lruprev;
#define VTODC(vp) ((struct dcnode *)(vp)->v_data)