/* publish the name of a keyring so that it can be found by name (if it has one)  */
static void keyring_publish_name(struct key *keyring)
/* publish the name of a keyring so that it can be found by name (if it has one)  */
static void keyring_publish_name(struct key *keyring)
{
	int bucket;
	if (keyring->description) {
		bucket = keyring_hash(keyring->description);
		write_lock(&keyring_name_lock);
		if (!keyring_name_hash[bucket].next)
			INIT_LIST_HEAD(&keyring_name_hash[bucket]);
		list_add_tail(&keyring->type_data.link,
			      &keyring_name_hash[bucket]);
		write_unlock(&keyring_name_lock);
	}
}