Lines Matching refs:key
124 void big_key_revoke(struct key *key) in big_key_revoke() argument
126 struct path *path = (struct path *)&key->payload.data2; in big_key_revoke()
129 key_payload_reserve(key, 0); in big_key_revoke()
130 if (key_is_instantiated(key) && key->type_data.x[1] > BIG_KEY_FILE_THRESHOLD) in big_key_revoke()
137 void big_key_destroy(struct key *key) in big_key_destroy() argument
139 if (key->type_data.x[1] > BIG_KEY_FILE_THRESHOLD) { in big_key_destroy()
140 struct path *path = (struct path *)&key->payload.data2; in big_key_destroy()
145 kfree(key->payload.data); in big_key_destroy()
146 key->payload.data = NULL; in big_key_destroy()
153 void big_key_describe(const struct key *key, struct seq_file *m) in big_key_describe() argument
155 unsigned long datalen = key->type_data.x[1]; in big_key_describe()
157 seq_puts(m, key->description); in big_key_describe()
159 if (key_is_instantiated(key)) in big_key_describe()
169 long big_key_read(const struct key *key, char __user *buffer, size_t buflen) in big_key_read() argument
171 unsigned long datalen = key->type_data.x[1]; in big_key_read()
178 struct path *path = (struct path *)&key->payload.data2; in big_key_read()
193 if (copy_to_user(buffer, key->payload.data, datalen) != 0) in big_key_read()