Lines Matching defs:nvpair

29 #include <sys/nvpair.h>
35 #include "nvpair.h"
41 * nvpair walker
51 mdb_warn("nvpair does not support global walks\n");
74 nvpair_t *nvpair;
85 nvpair = &((i_nvp_t *)wsp->walk_addr)->nvi_nvp;
86 status = wsp->walk_callback((uintptr_t)nvpair, NULL, wsp->walk_cbdata);
96 * Print out an entire nvlist. This is shorthand for '::walk nvpair |
97 * ::nvpair -rq'. The '-v' option invokes '::nvpair' without the "-q" option.
120 return (mdb_pwalk_dcmd("nvpair", "nvpair", 1, &v, addr));
124 * ::nvpair [-rq]
129 * Prints out a single nvpair. By default, all information is printed. When
165 { DATA_TYPE_NVLIST_ARRAY, 0, "nvpair list_array" }
218 nvpair_t nvpair_tmp, *nvpair;
235 /* read in the nvpair header so we can get the size */
236 if (mdb_vread(&nvpair_tmp, sizeof (nvpair), addr) == -1) {
237 mdb_warn("failed to read nvpair at %p", addr);
242 mdb_warn("nvpair of size zero at %p", addr);
246 /* read in the entire nvpair */
247 nvpair = mdb_alloc(size, UM_SLEEP | UM_GC);
248 if (mdb_vread(nvpair, size, addr) == -1) {
249 mdb_warn("failed to read nvpair and data at %p", addr);
253 /* lookup type decoding information for this nvpair */
254 type = NVP_TYPE(nvpair);
255 nelem = NVP_NELEM(nvpair);
265 mdb_printf("%s", NVP_NAME(nvpair));
267 /* print out the first line of nvpair info */
268 mdb_printf("name='%s'", NVP_NAME(nvpair));
273 * If the nvpair type is unknown we print the type
289 data = (char *)NVP_VALUE(nvpair);
290 data_end = (char *)nvpair + NVP_SIZE(nvpair);
296 * the nvpair address we received as addr).
304 char *p = (char *)addr + (data - (char *)nvpair);
309 if (mdb_pwalk_dcmd("nvpair", "nvpair", argc, argv,
330 mdb_printf("%s", NVP_NAME(nvpair));
333 if (mdb_pwalk_dcmd("nvpair", "nvpair", argc,