Lines Matching refs:result

324 	sid2pid_t	*result;  in kidmap_cache_lookup_uidbysid()  local
334 result = avl_find(&cache->sid2pid.tree, &entry, &where); in kidmap_cache_lookup_uidbysid()
335 if (result != NULL) { in kidmap_cache_lookup_uidbysid()
336 list_move(&cache->sid2pid.head, result); in kidmap_cache_lookup_uidbysid()
337 if (result->uid != UNDEF_UID && result->uid_ttl > now) { in kidmap_cache_lookup_uidbysid()
338 *uid = result->uid; in kidmap_cache_lookup_uidbysid()
354 sid2pid_t *result; in kidmap_cache_lookup_gidbysid() local
364 result = avl_find(&cache->sid2pid.tree, &entry, &where); in kidmap_cache_lookup_gidbysid()
365 if (result != NULL) { in kidmap_cache_lookup_gidbysid()
366 list_move(&cache->sid2pid.head, result); in kidmap_cache_lookup_gidbysid()
367 if (result->gid != UNDEF_GID && result->gid_ttl > now) { in kidmap_cache_lookup_gidbysid()
368 *gid = result->gid; in kidmap_cache_lookup_gidbysid()
384 sid2pid_t *result; in kidmap_cache_lookup_pidbysid() local
394 result = avl_find(&cache->sid2pid.tree, &entry, &where); in kidmap_cache_lookup_pidbysid()
395 if (result != NULL) { in kidmap_cache_lookup_pidbysid()
396 list_move(&cache->sid2pid.head, result); in kidmap_cache_lookup_pidbysid()
397 if (result->is_user != UNDEF_ISUSER) { in kidmap_cache_lookup_pidbysid()
398 if (result->is_user && result->uid_ttl > now) { in kidmap_cache_lookup_pidbysid()
399 *pid = result->uid; in kidmap_cache_lookup_pidbysid()
400 *is_user = result->is_user; in kidmap_cache_lookup_pidbysid()
402 } else if (!result->is_user && result->gid_ttl > now) { in kidmap_cache_lookup_pidbysid()
403 *pid = result->gid; in kidmap_cache_lookup_pidbysid()
404 *is_user = result->is_user; in kidmap_cache_lookup_pidbysid()
422 pid2sid_t *result; in kidmap_cache_lookup_sidbyuid() local
431 result = avl_find(&cache->uid2sid.tree, &entry, &where); in kidmap_cache_lookup_sidbyuid()
432 if (result != NULL) { in kidmap_cache_lookup_sidbyuid()
433 list_move(&cache->uid2sid.head, result); in kidmap_cache_lookup_sidbyuid()
434 if (result->ttl > now) { in kidmap_cache_lookup_sidbyuid()
435 *sid_prefix = result->sid_prefix; in kidmap_cache_lookup_sidbyuid()
436 *rid = result->rid; in kidmap_cache_lookup_sidbyuid()
452 pid2sid_t *result; in kidmap_cache_lookup_sidbygid() local
461 result = avl_find(&cache->gid2sid.tree, &entry, &where); in kidmap_cache_lookup_sidbygid()
462 if (result != NULL) { in kidmap_cache_lookup_sidbygid()
463 list_move(&cache->gid2sid.head, result); in kidmap_cache_lookup_sidbygid()
464 if (result->ttl > now) { in kidmap_cache_lookup_sidbygid()
465 *sid_prefix = result->sid_prefix; in kidmap_cache_lookup_sidbygid()
466 *rid = result->rid; in kidmap_cache_lookup_sidbygid()
489 sid2pid_t *result; in kidmap_cache_add_sid2uid() local
497 result = avl_find(&cache->sid2pid.tree, &find, &where); in kidmap_cache_add_sid2uid()
498 if (result) { in kidmap_cache_add_sid2uid()
499 if (result->uid == UNDEF_UID) in kidmap_cache_add_sid2uid()
501 result->uid = uid; in kidmap_cache_add_sid2uid()
502 result->uid_ttl = ttl; in kidmap_cache_add_sid2uid()
531 pid2sid_t *result; in kidmap_cache_add_sid2uid() local
538 result = avl_find(&cache->uid2sid.tree, &find, &where); in kidmap_cache_add_sid2uid()
539 if (result) { in kidmap_cache_add_sid2uid()
540 result->sid_prefix = sid_prefix; in kidmap_cache_add_sid2uid()
541 result->rid = rid; in kidmap_cache_add_sid2uid()
542 result->ttl = ttl; in kidmap_cache_add_sid2uid()
578 sid2pid_t *result; in kidmap_cache_add_sid2gid() local
586 result = avl_find(&cache->sid2pid.tree, &find, &where); in kidmap_cache_add_sid2gid()
587 if (result) { in kidmap_cache_add_sid2gid()
588 if (result->gid == UNDEF_GID) in kidmap_cache_add_sid2gid()
590 result->gid = gid; in kidmap_cache_add_sid2gid()
591 result->gid_ttl = ttl; in kidmap_cache_add_sid2gid()
620 pid2sid_t *result; in kidmap_cache_add_sid2gid() local
627 result = avl_find(&cache->gid2sid.tree, &find, &where); in kidmap_cache_add_sid2gid()
628 if (result) { in kidmap_cache_add_sid2gid()
629 result->sid_prefix = sid_prefix; in kidmap_cache_add_sid2gid()
630 result->rid = rid; in kidmap_cache_add_sid2gid()
631 result->ttl = ttl; in kidmap_cache_add_sid2gid()
666 sid2pid_t *result; in kidmap_cache_add_sid2pid() local
674 result = avl_find(&cache->sid2pid.tree, &find, &where); in kidmap_cache_add_sid2pid()
675 if (result) { in kidmap_cache_add_sid2pid()
676 if (result->is_user == UNDEF_ISUSER) in kidmap_cache_add_sid2pid()
678 result->is_user = is_user; in kidmap_cache_add_sid2pid()
680 if (result->uid == UNDEF_UID) in kidmap_cache_add_sid2pid()
682 result->uid = pid; in kidmap_cache_add_sid2pid()
683 result->uid_ttl = ttl; in kidmap_cache_add_sid2pid()
685 if (result->gid == UNDEF_GID) in kidmap_cache_add_sid2pid()
687 result->gid = pid; in kidmap_cache_add_sid2pid()
688 result->gid_ttl = ttl; in kidmap_cache_add_sid2pid()
727 pid2sid_t *result; in kidmap_cache_add_sid2pid() local
734 result = avl_find(&cache->uid2sid.tree, &find, &where); in kidmap_cache_add_sid2pid()
735 if (result) { in kidmap_cache_add_sid2pid()
736 result->sid_prefix = sid_prefix; in kidmap_cache_add_sid2pid()
737 result->rid = rid; in kidmap_cache_add_sid2pid()
738 result->ttl = ttl; in kidmap_cache_add_sid2pid()
762 result = avl_find(&cache->gid2sid.tree, &find, &where); in kidmap_cache_add_sid2pid()
763 if (result) { in kidmap_cache_add_sid2pid()
764 result->sid_prefix = sid_prefix; in kidmap_cache_add_sid2pid()
765 result->rid = rid; in kidmap_cache_add_sid2pid()
766 result->ttl = ttl; in kidmap_cache_add_sid2pid()
864 sid_prefix_node_t *result; in kidmap_find_sid_prefix() local
875 result = avl_find(&kidmap_sid_prefix_store->tree, &find, &where); in kidmap_find_sid_prefix()
877 if (result) { in kidmap_find_sid_prefix()
879 return (result->sid_prefix); in kidmap_find_sid_prefix()
890 result = avl_find(&kidmap_sid_prefix_store->tree, in kidmap_find_sid_prefix()
892 if (result) { in kidmap_find_sid_prefix()
894 return (result->sid_prefix); in kidmap_find_sid_prefix()