Lines Matching defs:key_ref
378 key_ref_t key_ref;
422 key_ref = search_process_keyrings_rcu(ctx);
424 if (!IS_ERR(key_ref))
447 key = key_ref_to_ptr(key_ref);
597 key_ref_t key_ref;
618 key_ref = search_process_keyrings_rcu(&ctx);
621 if (!IS_ERR(key_ref)) {
623 ret = key_task_permission(key_ref, current_cred(),
626 key_ref_put(key_ref);
632 key = key_ref_to_ptr(key_ref);
644 } else if (PTR_ERR(key_ref) != -EAGAIN) {
645 key = ERR_CAST(key_ref);
799 key_ref_t key_ref;
808 key_ref = search_process_keyrings_rcu(&ctx);
809 if (IS_ERR(key_ref)) {
810 key = ERR_CAST(key_ref);
811 if (PTR_ERR(key_ref) == -EAGAIN)
814 key = key_ref_to_ptr(key_ref);