Lines Matching refs:persistent_ref
44 key_ref_t reg_ref, persistent_ref; in key_create_persistent() local
52 persistent_ref = find_key_to_update(reg_ref, index_key); in key_create_persistent()
53 if (persistent_ref) in key_create_persistent()
54 return persistent_ref; in key_create_persistent()
78 key_ref_t reg_ref, persistent_ref; in key_get_persistent() local
92 persistent_ref = find_key_to_update(reg_ref, &index_key); in key_get_persistent()
95 if (persistent_ref) in key_get_persistent()
103 persistent_ref = key_create_persistent(ns, uid, &index_key); in key_get_persistent()
105 if (!IS_ERR(persistent_ref)) in key_get_persistent()
108 return PTR_ERR(persistent_ref); in key_get_persistent()
111 ret = key_task_permission(persistent_ref, current_cred(), KEY_NEED_LINK); in key_get_persistent()
113 persistent = key_ref_to_ptr(persistent_ref); in key_get_persistent()
121 key_ref_put(persistent_ref); in key_get_persistent()