Lines Matching defs:list
50 nvlist_t *auth, *fmri, *list, *test_arr[TEST_ARR_SZ];
60 * Build up a valid list.suspect event for a fictional diagnosis
66 nvlist_alloc(&list, NV_UNIQUE_NAME, 0) != 0) {
96 err |= nvlist_add_uint8(list, FM_VERSION, FM_SUSPECT_VERSION);
97 err |= nvlist_add_string(list, FM_CLASS, FM_LIST_SUSPECT_CLASS);
98 err |= nvlist_add_string(list, FM_SUSPECT_UUID, "12345678");
99 err |= nvlist_add_string(list, FM_SUSPECT_DIAG_CODE, code);
100 err |= nvlist_add_int64_array(list, FM_SUSPECT_DIAG_TIME, tod, 2);
101 err |= nvlist_add_nvlist(list, FM_SUSPECT_DE, fmri);
102 err |= nvlist_add_uint32(list, FM_SUSPECT_FAULT_SZ, 0);
105 * Add a contrived nvlist array to our list.suspect so that we can
116 err |= nvlist_add_nvlist_array(list, "test_arr", test_arr, TEST_ARR_SZ);
119 (void) fprintf(stderr, "%s: failed to build list nvlist: %s\n",
197 * our list.suspect event handle.
200 if ((s = fmd_msg_getitem_nv(h, NULL, list, i)) == NULL) {
212 * a known message code using our list.suspect event handle.
214 if ((s = fmd_msg_gettext_nv(h, NULL, list)) == NULL) {
225 * a known message code using our list.suspect event handle, but this
235 if ((s = fmd_msg_gettext_nv(h, NULL, list)) == NULL) {
248 nvlist_free(list);