Lines Matching defs:info
240 struct ctlib_status_info *info;
243 info = malloc(sizeof (struct ctlib_status_info));
244 if (info == NULL)
247 info->status.ctst_detail = detail;
250 info->status.ctst_nbytes = status_nbytes;
251 info->status.ctst_buffer = status_buffer;
253 error = ioctl(fd, CT_SSTATUS, &info->status);
257 if (info->status.ctst_nbytes <= status_nbytes)
262 status_nbytes = info->status.ctst_nbytes;
267 if ((errno = nvlist_unpack(info->status.ctst_buffer,
268 info->status.ctst_nbytes, &info->nvl, 0)) != 0)
275 info->status.ctst_nbytes = 0;
276 info->nvl = NULL;
277 if (ioctl(fd, CT_SSTATUS, &info->status) == -1)
281 *stathdl = info;
288 if (info)
289 free(info);
296 struct ctlib_status_info *info = stathdl;
298 if (info->nvl) {
299 assert(info->status.ctst_detail != CTD_COMMON);
300 nvlist_free(info->nvl);
303 free(info);
309 struct ctlib_status_info *info = stathdl;
310 return (info->status.ctst_id);
316 struct ctlib_status_info *info = stathdl;
317 return (info->status.ctst_zoneid);
323 struct ctlib_status_info *info = stathdl;
324 return (types[info->status.ctst_type].type_name);
330 struct ctlib_status_info *info = stathdl;
331 return (info->status.ctst_holder);
337 struct ctlib_status_info *info = stathdl;
338 return (info->status.ctst_state);
344 struct ctlib_status_info *info = stathdl;
345 return (info->status.ctst_nevents);
351 struct ctlib_status_info *info = stathdl;
352 return (info->status.ctst_ntime);
358 struct ctlib_status_info *info = stathdl;
359 return (info->status.ctst_qtime);
365 struct ctlib_status_info *info = stathdl;
366 return (info->status.ctst_nevid);
372 struct ctlib_status_info *info = stathdl;
373 return (info->status.ctst_informative);
379 struct ctlib_status_info *info = stathdl;
380 return (info->status.ctst_critical);
386 struct ctlib_status_info *info = stathdl;
387 return (info->status.ctst_cookie);
418 struct ctlib_event_info *info;
422 info = malloc(sizeof (struct ctlib_event_info));
423 if (info == NULL)
425 info->nvl = NULL;
426 event = &info->event;
451 if (event->ctev_goffset > 0 && (error = unpack_and_merge(&info->nvl,
456 (error = unpack_and_merge(&info->nvl,
463 *evt = info;
469 if (info) {
470 if (info->nvl)
471 nvlist_free(info->nvl);
472 free(info);
508 struct ctlib_event_info *info = evthdl;
510 if (info->nvl)
511 nvlist_free(info->nvl);
512 free(info);
519 struct ctlib_event_info *info = evthdl;
520 return (info->event.ctev_flags);
526 struct ctlib_event_info *info = evthdl;
527 return (info->event.ctev_id);
533 struct ctlib_event_info *info = evthdl;
534 return (info->event.ctev_evid);
540 struct ctlib_event_info *info = evthdl;
541 return (info->event.ctev_type);
547 struct ctlib_event_info *info = evthdl;
548 if (info->nvl == NULL ||
549 nvlist_lookup_uint64(info->nvl, CTS_NEVID, evidp))
557 struct ctlib_event_info *info = evthdl;
558 if (info->nvl == NULL ||
559 nvlist_lookup_int32(info->nvl, CTS_NEWCT, (int *)ctidp))