Lines Matching refs:new
490 sid2pid_t *new; in kidmap_cache_add_sid2uid() local
504 new = kmem_alloc(sizeof (sid2pid_t), KM_SLEEP); in kidmap_cache_add_sid2uid()
505 new->sid_prefix = sid_prefix; in kidmap_cache_add_sid2uid()
506 new->rid = rid; in kidmap_cache_add_sid2uid()
507 new->uid = uid; in kidmap_cache_add_sid2uid()
508 new->uid_ttl = ttl; in kidmap_cache_add_sid2uid()
509 new->gid = UNDEF_GID; in kidmap_cache_add_sid2uid()
510 new->gid_ttl = 0; in kidmap_cache_add_sid2uid()
511 new->is_user = UNDEF_ISUSER; /* Unknown */ in kidmap_cache_add_sid2uid()
514 list_insert(&cache->sid2pid.head, new); in kidmap_cache_add_sid2uid()
515 avl_insert(&cache->sid2pid.tree, new, where); in kidmap_cache_add_sid2uid()
532 pid2sid_t *new; in kidmap_cache_add_sid2uid() local
544 new = kmem_alloc(sizeof (pid2sid_t), KM_SLEEP); in kidmap_cache_add_sid2uid()
545 new->sid_prefix = sid_prefix; in kidmap_cache_add_sid2uid()
546 new->rid = rid; in kidmap_cache_add_sid2uid()
547 new->pid = uid; in kidmap_cache_add_sid2uid()
548 new->ttl = ttl; in kidmap_cache_add_sid2uid()
550 list_insert(&cache->uid2sid.head, new); in kidmap_cache_add_sid2uid()
551 avl_insert(&cache->uid2sid.tree, new, where); in kidmap_cache_add_sid2uid()
579 sid2pid_t *new; in kidmap_cache_add_sid2gid() local
593 new = kmem_alloc(sizeof (sid2pid_t), KM_SLEEP); in kidmap_cache_add_sid2gid()
594 new->sid_prefix = sid_prefix; in kidmap_cache_add_sid2gid()
595 new->rid = rid; in kidmap_cache_add_sid2gid()
596 new->uid = UNDEF_UID; in kidmap_cache_add_sid2gid()
597 new->uid_ttl = 0; in kidmap_cache_add_sid2gid()
598 new->gid = gid; in kidmap_cache_add_sid2gid()
599 new->gid_ttl = ttl; in kidmap_cache_add_sid2gid()
600 new->is_user = UNDEF_ISUSER; /* Unknown */ in kidmap_cache_add_sid2gid()
603 list_insert(&cache->sid2pid.head, new); in kidmap_cache_add_sid2gid()
604 avl_insert(&cache->sid2pid.tree, new, where); in kidmap_cache_add_sid2gid()
621 pid2sid_t *new; in kidmap_cache_add_sid2gid() local
633 new = kmem_alloc(sizeof (pid2sid_t), KM_SLEEP); in kidmap_cache_add_sid2gid()
634 new->sid_prefix = sid_prefix; in kidmap_cache_add_sid2gid()
635 new->rid = rid; in kidmap_cache_add_sid2gid()
636 new->pid = gid; in kidmap_cache_add_sid2gid()
637 new->ttl = ttl; in kidmap_cache_add_sid2gid()
639 list_insert(&cache->gid2sid.head, new); in kidmap_cache_add_sid2gid()
640 avl_insert(&cache->gid2sid.tree, new, where); in kidmap_cache_add_sid2gid()
667 sid2pid_t *new; in kidmap_cache_add_sid2pid() local
691 new = kmem_alloc(sizeof (sid2pid_t), KM_SLEEP); in kidmap_cache_add_sid2pid()
692 new->sid_prefix = sid_prefix; in kidmap_cache_add_sid2pid()
693 new->rid = rid; in kidmap_cache_add_sid2pid()
694 new->is_user = is_user; in kidmap_cache_add_sid2pid()
696 new->uid = pid; in kidmap_cache_add_sid2pid()
697 new->uid_ttl = ttl; in kidmap_cache_add_sid2pid()
698 new->gid = UNDEF_GID; in kidmap_cache_add_sid2pid()
699 new->gid_ttl = 0; in kidmap_cache_add_sid2pid()
702 new->uid = UNDEF_UID; in kidmap_cache_add_sid2pid()
703 new->uid_ttl = 0; in kidmap_cache_add_sid2pid()
704 new->gid = pid; in kidmap_cache_add_sid2pid()
705 new->gid_ttl = ttl; in kidmap_cache_add_sid2pid()
710 list_insert(&cache->sid2pid.head, new); in kidmap_cache_add_sid2pid()
711 avl_insert(&cache->sid2pid.tree, new, where); in kidmap_cache_add_sid2pid()
728 pid2sid_t *new; in kidmap_cache_add_sid2pid() local
740 new = kmem_alloc(sizeof (pid2sid_t), KM_SLEEP); in kidmap_cache_add_sid2pid()
741 new->sid_prefix = sid_prefix; in kidmap_cache_add_sid2pid()
742 new->rid = rid; in kidmap_cache_add_sid2pid()
743 new->pid = pid; in kidmap_cache_add_sid2pid()
744 new->ttl = ttl; in kidmap_cache_add_sid2pid()
746 list_insert(&cache->uid2sid.head, new); in kidmap_cache_add_sid2pid()
747 avl_insert(&cache->uid2sid.tree, new, where); in kidmap_cache_add_sid2pid()
768 new = kmem_alloc(sizeof (pid2sid_t), KM_SLEEP); in kidmap_cache_add_sid2pid()
769 new->sid_prefix = sid_prefix; in kidmap_cache_add_sid2pid()
770 new->rid = rid; in kidmap_cache_add_sid2pid()
771 new->pid = pid; in kidmap_cache_add_sid2pid()
772 new->ttl = ttl; in kidmap_cache_add_sid2pid()
774 list_insert(&cache->gid2sid.head, new); in kidmap_cache_add_sid2pid()
775 avl_insert(&cache->gid2sid.tree, new, where); in kidmap_cache_add_sid2pid()
865 sid_prefix_node_t *new; in kidmap_find_sid_prefix() local
898 new = kmem_alloc(sizeof (sid_prefix_node_t), KM_SLEEP); in kidmap_find_sid_prefix()
899 new->sid_prefix = kidmap_strdup(sid_prefix); in kidmap_find_sid_prefix()
900 avl_insert(&kidmap_sid_prefix_store->tree, new, where); in kidmap_find_sid_prefix()
903 return (new->sid_prefix); in kidmap_find_sid_prefix()