HomeSort by relevance Sort by last modified time
    Searched defs:nvl (Results 1 - 25 of 102) sorted by null

1 2 3 4 5

  /netvirt/usr/src/lib/libcontract/common/
libcontract_impl.h 42 nvlist_t *nvl; member in struct:ctlib_status_info
47 nvlist_t *nvl; member in struct:ctlib_event_info
  /netvirt/usr/src/lib/fm/libdiskstatus/common/
libdiskstatus.c 165 nvlist_t *nvl = NULL; local
186 if ((err = nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0)) != 0)
189 if ((err = nvlist_add_string(nvl, "protocol", "scsi")) != 0 ||
190 (err = nvlist_add_nvlist(nvl, "status", dsp->ds_state)) != 0)
203 (err = nvlist_add_nvlist(nvl, FM_EREPORT_SCSI_PREDFAIL,
212 (err = nvlist_add_nvlist(nvl, FM_EREPORT_SCSI_TESTFAIL,
221 (err = nvlist_add_nvlist(nvl, FM_EREPORT_SCSI_OVERTEMP,
226 if ((err = nvlist_add_nvlist(nvl, "faults", faults)) != 0)
230 return (nvl);
234 nvlist_free(nvl);
    [all...]
  /netvirt/usr/src/cmd/fm/fmd/common/
fmd_protocol.c 50 nvlist_t *nvl; local
53 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0)
56 err |= nvlist_add_uint8(nvl, FM_VERSION, FM_FMRI_AUTH_VERSION);
62 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_PRODUCT, str);
65 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_CHASSIS, str);
68 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_DOMAIN, str);
71 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_SERVER, str);
76 return (nvl);
86 nvlist_t *nvl; local
89 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0
115 nvlist_t *nvl; local
146 nvlist_t *nvl; local
187 nvlist_t *nvl; local
225 nvlist_t *nvl; local
257 nvlist_t *nvl, *fmri; local
292 nvlist_t *nvl; local
312 nvlist_t *nvl = fmd_protocol_xprt_ctl(mp, class, version); local
325 nvlist_t *nvl = fmd_protocol_xprt_ctl(mp, class, version); local
    [all...]
fmd_subr.c 155 nvlist_t *nvl; local
187 (nvl = fmd_protocol_fmderror(err, format, ap)) != NULL) {
189 (void) nvlist_lookup_string(nvl, FM_CLASS, &class);
190 e = fmd_event_create(FMD_EVT_PROTOCOL, FMD_HRT_NOW, nvl, class);
fmd_fmri.c 136 fmd_fmri_auth2str(nvlist_t *nvl)
142 for (nvp = nvlist_next_nvpair(nvl, NULL);
143 nvp != NULL; nvp = nvlist_next_nvpair(nvl, nvp)) {
155 for (nvp = nvlist_next_nvpair(nvl, NULL);
156 nvp != NULL; nvp = nvlist_next_nvpair(nvl, nvp)) {
256 nvl2scheme(nvlist_t *nvl)
260 if (nvlist_lookup_string(nvl, FM_FMRI_SCHEME, &name) != 0) {
269 fmd_fmri_nvl2str(nvlist_t *nvl, char *buf, size_t buflen)
280 if ((sp = nvl2scheme(nvl)) == NULL)
285 rv = sp->sch_ops.sop_nvl2str(nvl, buf, buflen)
370 nvlist_t *nvl; local
    [all...]
fmd_rpc_adm.c 773 nvlist_t *nvl; local
794 nvl = fmd_case_mkevent(cp, FM_LIST_SUSPECT_CLASS);
796 err = nvlist_pack(nvl, &rvp->rci_evbuf.rci_evbuf_val,
799 nvlist_free(nvl);
fmd_sysevent.c 101 nvlist_t *nvl; local
116 if (sysevent_get_attr_list(sep, &nvl) != 0) {
131 fmd_xprt_post(sysev_hdl, xp, nvl, hrt);
220 nvlist_t *nvl; local
282 ed.ed_size, &nvl, &fmd.d_nva)) != 0) {
305 if (nvlist_lookup_uint64(nvl, FM_EREPORT_ENA, &ena) == 0)
320 (void) nvlist_remove_all(nvl, FMD_EVN_TOD);
321 (void) nvlist_add_uint64_array(nvl,
324 fmd_xprt_post(hdl, sysev_xprt, nvl, 0);
  /netvirt/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/
cmd_dp_page.c 182 nvlist_t *nvl; local
201 nvl = page->page_asru_nvl;
203 bank = cmd_bank_lookup(hdl, nvl);
216 cmd_page_fault(hdl, nvl, nvl, ep, page->page_physbase);
cmd_dp.c 51 nvlist_t *nvl = NULL; local
55 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0)
58 err = nvlist_add_string(nvl, FM_FMRI_SCHEME, FM_FMRI_SCHEME_CPU);
59 err |= nvlist_add_uint8(nvl, FM_VERSION, FM_CPU_SCHEME_VERSION);
60 err |= nvlist_add_uint32(nvl, FM_FMRI_CPU_ID, cpuid);
66 err |= nvlist_add_string(nvl, FM_FMRI_CPU_SERIAL_ID, sbuf);
68 nvlist_free(nvl);
71 return (nvl);
104 nvlist_t *nvl; local
106 nvl = dp_cpu_fmri(hdl, ptr->dp_cpuid_list[i]
315 nvlist_t *nvl; local
    [all...]
  /netvirt/usr/src/cmd/mdb/common/modules/genunix/
fm.c 75 nvlist_t nvl; local
84 != sizeof (eqnp) || mdb_vread(&nvl, sizeof (nvl),
85 (uintptr_t)eqnp.eqn_nvl) != sizeof (nvl)) {
92 return (wsp->walk_callback((uintptr_t)eqnp.eqn_nvl, &nvl,
127 nvlist_t nvl; local
136 != sizeof (eqnp) || mdb_vread(&nvl, sizeof (nvl),
137 (uintptr_t)eqnp.eqn_nvl) != sizeof (nvl)) {
144 return (wsp->walk_callback((uintptr_t)eqnp.eqn_nvl, &nvl,
156 nvlist_t nvl; local
    [all...]
  /netvirt/usr/src/cmd/picl/plugins/sun4v/mdesc/
mdescplugin.c 210 nvlist_t *nvl; local
215 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME_TYPE, NULL) != 0)
229 if (nvlist_add_string(nvl, PICLEVENTARG_EVENT_NAME,
231 free(nvl);
241 if (nvlist_add_string(nvl, PICLEVENTARG_DEVFS_PATH, "/cpu") != 0) {
242 free(nvl);
246 if (nvlist_pack(nvl, &packed_nvl, &nvl_size, NV_ENCODE_NATIVE,
248 free(nvl);
254 free(nvl);
  /netvirt/usr/src/uts/common/io/ib/ibtl/
ibtl_ibnex.c 69 * a NVL packed buffer (of client names/ap_ids or devpaths) and returns
78 nvlist_t *nvl; local
113 (void) nvlist_alloc(&nvl, 0, KM_SLEEP);
125 (void) nvlist_add_string(nvl, "Client",
133 (void) nvlist_add_string(nvl, "Alt_HCA", "no");
134 (void) nvlist_add_string(nvl, "ApID", "-");
141 (void) nvlist_add_string(nvl, "Alt_HCA", "no");
143 (void) nvlist_add_string(nvl, "Alt_HCA", "yes");
146 (void) nvlist_add_string(nvl, "ApID", "-");
164 (void) nvlist_add_string(nvl, "ApID", "-")
    [all...]
  /netvirt/usr/src/cmd/fm/modules/SUNW,SPARC-Enterprise/cpumem-retire/
cma_main.c 93 nvl2subr(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t **asrup)
100 if (nvlist_lookup_nvlist(nvl, FM_FAULT_ASRU, &asru) != 0 ||
108 if (fmd_nvl_class_match(hdl, nvl, sp->subr_class) &&
121 cma_recv_list(fmd_hdl_t *hdl, nvlist_t *nvl)
129 err |= nvlist_lookup_string(nvl, FM_SUSPECT_UUID, &uuid);
130 err |= nvlist_lookup_nvlist_array(nvl, FM_SUSPECT_FAULT_LIST,
139 nvlist_t *nvl = *nva++; local
143 if ((subr = nvl2subr(hdl, nvl, &asru)) == NULL)
153 err = subr->subr_func(hdl, nvl, asru, uuid);
165 cma_recv_one(fmd_hdl_t *hdl, nvlist_t *nvl)
    [all...]
  /netvirt/usr/src/cmd/fm/modules/common/cpumem-retire/
cma_main.c 150 nvl2subr(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t **asrup)
158 if (nvlist_lookup_nvlist(nvl, FM_FAULT_ASRU, &asru) != 0 ||
166 if (fmd_nvl_class_match(hdl, nvl, sp->subr_class) &&
174 (void) nvlist_lookup_string(nvl, FM_CLASS, &fltclass);
182 cma_recv_list(fmd_hdl_t *hdl, nvlist_t *nvl)
190 err |= nvlist_lookup_string(nvl, FM_SUSPECT_UUID, &uuid);
191 err |= nvlist_lookup_nvlist_array(nvl, FM_SUSPECT_FAULT_LIST,
200 nvlist_t *nvl = *nva++; local
204 if ((subr = nvl2subr(hdl, nvl, &asru)) == NULL)
214 err = subr->subr_func(hdl, nvl, asru, uuid)
    [all...]
  /netvirt/usr/src/cmd/fm/modules/sun4u/datapath-retire/
cda_main.c 64 cda_get_subr(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t **asrup)
71 if (nvlist_lookup_nvlist(nvl, FM_FAULT_ASRU, &asru) != 0 ||
79 if (fmd_nvl_class_match(hdl, nvl, sp->subr_class) &&
92 cda_recv_list(fmd_hdl_t *hdl, nvlist_t *nvl)
99 err |= nvlist_lookup_string(nvl, FM_SUSPECT_UUID, &uuid);
100 err |= nvlist_lookup_nvlist_array(nvl, FM_SUSPECT_FAULT_LIST,
108 nvlist_t *nvl = *nva++; local
115 if ((subr = cda_get_subr(hdl, nvl, &asru)) == NULL)
119 subr->subr_func(hdl, nvl, asru, uuid);
124 cda_recv_one(fmd_hdl_t *hdl, nvlist_t *nvl)
    [all...]
  /netvirt/usr/src/cmd/fm/modules/sun4v/cpumem-retire/
cma_main.c 117 nvl2subr(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t **asrup)
124 if (nvlist_lookup_nvlist(nvl, FM_FAULT_ASRU, &asru) != 0 ||
132 if (fmd_nvl_class_match(hdl, nvl, sp->subr_class) &&
145 cma_recv_list(fmd_hdl_t *hdl, nvlist_t *nvl)
153 err |= nvlist_lookup_string(nvl, FM_SUSPECT_UUID, &uuid);
154 err |= nvlist_lookup_nvlist_array(nvl, FM_SUSPECT_FAULT_LIST,
163 nvlist_t *nvl = *nva++; local
167 if ((subr = nvl2subr(hdl, nvl, &asru)) == NULL)
177 err = subr->subr_func(hdl, nvl, asru, uuid);
189 cma_recv_one(fmd_hdl_t *hdl, nvlist_t *nvl)
    [all...]
  /netvirt/usr/src/common/net/wanboot/
bootconf.c 95 nvlist_t *nvl = NULL; local
103 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) {
231 if (nvlist_add_string(nvl, ks, vs) != 0) {
254 if (nvl != NULL) {
255 nvlist_free(nvl);
263 handle->bc_nvl = nvl;
278 nvlist_t *nvl = handle->bc_nvl; local
290 if (nvlist_lookup_string(nvl, BC_ENCRYPTION_TYPE, &strval) == 0) {
313 nvlist_t *nvl = handle->bc_nvl; local
325 if (nvlist_lookup_string(nvl, BC_SIGNATURE_TYPE, &strval) == 0)
348 nvlist_t *nvl = handle->bc_nvl; local
382 nvlist_t *nvl = handle->bc_nvl; local
416 nvlist_t *nvl = handle->bc_nvl; local
462 nvlist_t *nvl = handle->bc_nvl; local
    [all...]
  /netvirt/usr/src/lib/fm/topo/libtopo/common/
mem.c 159 nvlist_t *nvl; local
168 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) != 0)
172 nvlist_free(nvl);
223 nvlist_free(nvl);
230 err = nvlist_add_string(nvl, "fmri-string", buf);
234 nvlist_free(nvl);
238 *out = nvl;
  /netvirt/usr/src/lib/librcm/
librcm_event.c 54 lookup_seq_num(nvlist_t *nvl, uint64_t *seq_num)
58 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) {
250 nvlist_t *nvl; local
279 nvl = (nvlist_t *)(void *)args;
282 if (errno = nvlist_size(nvl, &nvl_size, NV_ENCODE_NATIVE)) {
283 nvlist_free(nvl);
297 (void) nvlist_add_uint64(nvl, RCM_SEQ_NUM, seq_num);
301 if (errno = nvlist_pack(nvl, &args, &alen, NV_ENCODE_NATIVE, 0)) {
302 nvlist_free(nvl);
306 nvlist_free(nvl);
    [all...]
  /netvirt/usr/src/cmd/dcs/sparc/sun4u/
rsrc_info.c 136 nvlist_t *nvl = NULL; local
154 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) {
159 if (nvlist_add_int32(nvl, RI_HDL_FLAGS, hdl->flags) != 0) {
165 nvlist_add_byte_array(nvl, RI_HDL_APS, (uchar_t *)buf, size) != 0) {
172 nvlist_add_byte_array(nvl, RI_HDL_CPU_CAPS, (uchar_t *)buf,
180 nvlist_add_byte_array(nvl, RI_HDL_MEM_CAPS, (uchar_t *)buf,
186 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
191 nvlist_free(nvl);
199 if (nvl != NULL)
200 nvlist_free(nvl);
211 nvlist_t *nvl = NULL; local
265 nvlist_t *nvl = NULL; local
320 nvlist_t *nvl = NULL; local
371 nvlist_t *nvl = NULL; local
436 nvlist_t *nvl = NULL; local
482 nvlist_t *nvl = NULL; local
556 nvlist_t *nvl = NULL; local
630 nvlist_t *nvl; local
690 nvlist_t *nvl; local
748 nvlist_t *nvl; local
807 nvlist_t *nvl; local
848 nvlist_t *nvl; local
886 nvlist_t *nvl; local
    [all...]
  /netvirt/usr/src/cmd/drd/
drd_rcm.c 272 nvlist_t *nvl = NULL; local
292 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0)
322 if (nvlist_add_string(nvl, "state", "capacity") ||
323 nvlist_add_int32(nvl, "old_total", oldncpus) ||
324 nvlist_add_int32(nvl, "new_total", newncpus) ||
325 nvlist_add_int32_array(nvl, "old_cpu_list", oldcpus, oldncpus) ||
326 nvlist_add_int32_array(nvl, "new_cpu_list", newcpus, newncpus)) {
330 rv = rcm_notify_capacity_change(rcm_hdl, RCM_CPU_ALL, 0, nvl, &rinfo);
334 s_nvfree(nvl);
352 nvlist_t *nvl = NULL local
625 nvlist_t *nvl = NULL; local
    [all...]
  /netvirt/usr/src/cmd/fm/modules/common/disk-transport/
disk_transport.c 79 nvlist_t *nvl; local
86 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) == 0) {
87 e |= nvlist_add_string(nvl, FM_CLASS, fullclass);
88 e |= nvlist_add_uint8(nvl, FM_VERSION, FM_EREPORT_VERSION);
89 e |= nvlist_add_uint64(nvl, FM_EREPORT_ENA, ena);
90 e |= nvlist_add_nvlist(nvl, FM_EREPORT_DETECTOR, detector);
91 e |= nvlist_merge(nvl, payload, 0);
94 fmd_xprt_post(hdl, xprt, nvl, 0);
96 nvlist_free(nvl);
  /netvirt/usr/src/cmd/fs.d/nfs/nfsd/
nfsd.c 826 nvlist_t *nvl; local
882 error = nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0);
889 error = nvlist_add_string_array(nvl, NFS4_DSS_NVPAIR_NAME,
894 nvlist_free(nvl);
905 error = nvlist_pack(nvl, &bufp, &buflen, NV_ENCODE_XDR, 0);
908 nvlist_free(nvl);
913 nvlist_free(nvl);
  /netvirt/usr/src/cmd/picl/plugins/common/piclevent/
picl_slm.c 80 add_to_queue(char *nvl, size_t sz)
88 new_nvq->nvq_item = nvl;
194 * returns 0 if arguments successfully added to nvl, EINVAL if arguments missing
198 piclslm_add_ec_devfs_args(nvlist_t *nvl, sysevent_t *ev)
206 if (nvlist_add_string(nvl, PICLEVENTARG_DEVFS_PATH,
214 * returns 0 if arguments successfully added to nvl, EINVAL if arguments missing
218 piclslm_add_ec_dr_args(nvlist_t *nvl, sysevent_t *ev)
226 if (nvlist_add_string(nvl, PICLEVENTARG_AP_ID,
232 if (nvlist_add_string(nvl, PICLEVENTARG_HINT, ""))
235 if (nvlist_add_string(nvl, PICLEVENTARG_HINT
297 nvlist_t *nvl; local
    [all...]
  /netvirt/usr/src/cmd/rcm_daemon/common/
rcm_event.c 61 nvlist_t *nvl; local
71 if (lerrno = nvlist_unpack(*data, *datalen, &nvl, 0)) {
78 if (errno = nvlist_lookup_int32(nvl, RCM_CMD, &cmd)) {
81 nvlist_free(nvl);
86 nvlist_free(nvl);
98 process_event(cmd, seq_num, nvl, &ret);
99 nvlist_free(nvl);
116 process_event(int cmd, int seq_num, nvlist_t *nvl, nvlist_t **ret)
137 rcm_print_nvlist(nvl);
143 (void) nvlist_lookup_string_array(nvl, RCM_RSRCNAMES, &nvl_rsrcs
301 nvlist_t *nvl = NULL; local
    [all...]

Completed in 1620 milliseconds

1 2 3 4 5