Lines Matching refs:key

605 		/* populate the key in the name_p structure */
617 getmyside(sp, ep), didnp->key, ep)) == NULL)
761 * key - key of records to delete
766 * key for all sides except curside. This function is used
774 mdkey_t key,
785 if (del_name(sp, nd->nd_nodeid, key, &first_error) == -1) {
798 * key - key of records to delete
803 * key for all sides except curside. This function is used
811 mdkey_t key,
823 if (del_name(sp, i, key, &first_error) == -1) {
842 * error. The key associated with the current side is removed
853 mdkey_t key = HSP_ID_TO_KEY(hspid);
858 * If there is no key, this means that the hot spare was created
862 if (key == MD_KEYBAD)
880 del_hsp_name_mn_sides(sp, sd, thisside, key,
884 del_hsp_name_trad_sides(sp, sd, thisside, key,
890 (void) del_name(sp, thisside, key, ep);
900 * key - key to use for the name record
915 mdkey_t key,
925 if (add_name(sp, nd->nd_nodeid, key, MD_HOTSPARES,
937 * key - key to use for the name record
952 mdkey_t key,
963 if (add_name(sp, i, key, MD_HOTSPARES, minor(NODEV),
977 * RETURNS: If successful the key of the newly added record is
994 mdkey_t key;
1013 key = add_name(sp, thisside, MD_KEYWILD, MD_HOTSPARES, minor(NODEV),
1015 if (key == -1) {
1019 /* Make sure that we can use the key */
1020 if (!HSP_KEY_OK(key)) {
1027 * Now that we have a key, we will use it to add a record to the
1039 if (add_hsp_name_mn_sides(sp, sd, thisside, key,
1045 if (add_hsp_name_trad_sides(sp, sd, thisside, key,
1052 return (KEY_TO_HSP_ID(sp->setno, key));
1056 (void) del_hsp_keys(sp, KEY_TO_HSP_ID(sp->setno, key), &ignore_error);
1089 /* Get key for hot spare pool name record. */
1177 shs.shs_key_old = hsnp->key;
1487 shs.shs_key_new = newnp->key;