Lines Matching refs:key
61 int user_instantiate(struct key *key, struct key_preparsed_payload *prep) in user_instantiate() argument
71 ret = key_payload_reserve(key, datalen); in user_instantiate()
83 rcu_assign_keypointer(key, upayload); in user_instantiate()
96 int user_update(struct key *key, struct key_preparsed_payload *prep) in user_update() argument
118 ret = key_payload_reserve(key, datalen); in user_update()
122 zap = key->payload.data; in user_update()
123 rcu_assign_keypointer(key, upayload); in user_update()
124 key->expiry = 0; in user_update()
139 int user_match(const struct key *key, const void *description) in user_match() argument
141 return strcmp(key->description, description) == 0; in user_match()
150 void user_revoke(struct key *key) in user_revoke() argument
152 struct user_key_payload *upayload = key->payload.data; in user_revoke()
155 key_payload_reserve(key, 0); in user_revoke()
158 rcu_assign_keypointer(key, NULL); in user_revoke()
168 void user_destroy(struct key *key) in user_destroy() argument
170 struct user_key_payload *upayload = key->payload.data; in user_destroy()
180 void user_describe(const struct key *key, struct seq_file *m) in user_describe() argument
182 seq_puts(m, key->description); in user_describe()
183 if (key_is_instantiated(key)) in user_describe()
184 seq_printf(m, ": %u", key->datalen); in user_describe()
193 long user_read(const struct key *key, char __user *buffer, size_t buflen) in user_read() argument
198 upayload = rcu_dereference_key(key); in user_read()