Lines Matching defs:od
400 smb_tree_post_odir(smb_tree_t *tree, smb_odir_t *od)
403 SMB_ODIR_VALID(od);
404 ASSERT(od->d_refcnt == 0);
405 ASSERT(od->d_state == SMB_ODIR_STATE_CLOSED);
406 ASSERT(od->d_tree == tree);
408 smb_llist_post(&tree->t_odir_list, od, smb_odir_delete);
1276 smb_odir_t *od;
1285 od = smb_llist_head(od_list);
1286 while (od) {
1287 if (od->d_odid == odid)
1289 od = smb_llist_next(od_list, od);
1291 if (od == NULL)
1298 if (od->d_user != sr->uid_user) {
1299 od = NULL;
1302 if (!smb_odir_hold(od))
1303 od = NULL;
1307 return (od);
1369 smb_tree_get_odir(smb_tree_t *tree, smb_odir_t *od)
1379 if (od) {
1380 ASSERT(od->d_magic == SMB_ODIR_MAGIC);
1381 od = smb_llist_next(od_list, od);
1383 od = smb_llist_head(od_list);
1386 while (od) {
1387 ASSERT(od->d_magic == SMB_ODIR_MAGIC);
1389 if (smb_odir_hold(od))
1391 od = smb_llist_next(od_list, od);
1395 return (od);
1408 smb_odir_t *od, *next_od;
1413 od = smb_tree_get_odir(tree, NULL);
1414 while (od) {
1415 ASSERT(od->d_magic == SMB_ODIR_MAGIC);
1416 ASSERT(od->d_tree == tree);
1418 next_od = smb_tree_get_odir(tree, od);
1419 if ((pid == 0) || (od->d_opened_by_pid == pid))
1420 smb_odir_close(od);
1421 smb_odir_release(od);
1423 od = next_od;