Lines Matching refs:db_nvl

678 	nvlist_t	*db_nvl = NULL;
701 /* Allocate and initialize the db_nvl nvlist (the entire db file). */
702 if (nvlist_alloc(&db_nvl, NV_UNIQUE_NAME, 0) ||
703 nvlist_add_int32(db_nvl, DB_VERSION, DB_VERSION_VALUE) ||
704 nvlist_add_int32(db_nvl, DB_MAGIC, DB_MAGIC_VALUE) ||
705 nvlist_add_string(db_nvl, DB_DATE, mk->mk_date) ||
706 nvlist_add_string(db_nvl, DB_SERVER_ID, mk->mk_server_id) ||
707 nvlist_add_string(db_nvl, DB_PRODUCT_ID, mk->mk_product_id) ||
708 nvlist_add_string(db_nvl, DB_CHASSIS_ID, mk->mk_chassis_id) ||
709 nvlist_add_uint64(db_nvl, DB_CNA, mk->mk_cna) ||
710 nvlist_add_int32(db_nvl, DB_NREC, mk->mk_nrec))
785 if (nvlist_add_string(db_nvl, DB_FLETCHER, fletcher) ||
786 nvlist_add_nvlist_array(db_nvl, DB_RECA, ra_nvl, mk->mk_nrec))
790 empty: if (nvlist_pack(db_nvl, &db_buf, &db_buf_size, NV_ENCODE_NATIVE, 0))
831 if (db_nvl)
832 nvlist_free(db_nvl);
847 nvlist_t *db_nvl = NULL;
875 if (nvlist_unpack(db_buf, db_stat.st_size, &db_nvl, 0))
879 if (nvlist_lookup_int32(db_nvl, DB_VERSION, &version) ||
881 nvlist_lookup_int32(db_nvl, DB_MAGIC, &magic) ||
883 nvlist_lookup_int32(db_nvl, DB_NREC, &h->h_nrec) ||
888 if (nvlist_lookup_string(db_nvl, DB_DATE, &date) ||
889 nvlist_lookup_string(db_nvl, DB_SERVER_ID, &server_id) ||
890 nvlist_lookup_string(db_nvl, DB_PRODUCT_ID, &product_id) ||
891 nvlist_lookup_string(db_nvl, DB_CHASSIS_ID, &chassis_id) ||
892 nvlist_lookup_uint64(db_nvl, DB_CNA, &h->h_cna))
896 (void) nvlist_lookup_string(db_nvl, DB_FLETCHER, &fletcher);
919 if (nvlist_lookup_nvlist_array(db_nvl, DB_RECA,
978 if (db_nvl)
979 nvlist_free(db_nvl);