/illumos-gate/usr/src/lib/scsi/plugins/ses/SUN/common/ |
H A D | sun_element.c | 40 ses_snap_t *snap = ses_node_snapshot(np); local 46 if ((sfdip = ses_plugin_page_lookup(sp, snap,
|
H A D | sun_enclosure.c | 126 ses_snap_t *snap = ses_node_snapshot(np); local 135 if ((sfdi = ses_plugin_page_lookup(sp, snap,
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_enclosure.c | 71 ses_snap_t *snap = ses_node_snapshot(np); local 84 if ((shpip = ses_plugin_page_lookup(sp, snap, 110 if (eid == 0 && (hpip = ses_plugin_page_lookup(sp, snap, 129 ses_snap_t *snap = ses_node_snapshot(np); local 142 if ((ssip = ses_plugin_page_lookup(sp, snap, 169 if (eid == 0 && (sip = ses_plugin_page_lookup(sp, snap, 207 ses_snap_t *snap = ses_node_snapshot(np); local 215 if ((upip = ses_plugin_page_lookup(sp, snap, 256 ses_snap_t *snap = ses_node_snapshot(np); local 267 if ((spip = ses_plugin_page_lookup(sp, snap, 300 ses_snap_t *snap = ses_node_snapshot(np); local [all...] |
H A D | ses2_pages.c | 336 ses_snap_t *snap = ses_node_snapshot(np); local 351 ses_snap_generation(snap));
|
H A D | ses2_element.c | 954 ses_snap_t *snap = ses_node_snapshot(np); local 974 if ((tp = ses_plugin_page_lookup(sp, snap,
|
/illumos-gate/usr/src/lib/scsi/libses/common/ |
H A D | ses_plugin.c | 36 ses_plugin_ctlpage_lookup(ses_plugin_t *sp, ses_snap_t *snap, int pagenum, argument 39 ses_target_t *tp = snap->ss_target; 43 if ((pp = ses_snap_ctl_page(snap, pagenum, len, unique)) == NULL) 128 ses_plugin_page_lookup(ses_plugin_t *sp, ses_snap_t *snap, int pagenum, argument 138 if ((pp = ses_snap_find_page(snap, pagenum, B_FALSE)) == NULL)
|
/illumos-gate/usr/src/cmd/ipf/svc/ |
H A D | ipfd.c | 98 static scf_snapshot_t *snap; variable 366 if (scf_instance_get_snapshot(inst, SCF_SNAPSHOT_RUNNING, snap) != 0) { 370 lsnap = snap; 423 if (scf_instance_get_snapshot(inst, SCF_SNAPSHOT_RUNNING, snap) == -1) { 442 lsnap = snap; 659 snap = scf_snapshot_create(h); 664 if (inst == NULL || snap == NULL || scratch_pg == NULL ||
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | expand.c | 107 get_prop(const scf_instance_t *inst, scf_snapshot_t *snap, argument 113 ret = scf_instance_get_pg_composed(inst, snap, pgn, pg); 115 snap = NULL; 117 ret = scf_instance_get_pg_composed(inst, snap, pgn, pg); 125 if (snap == NULL) 144 * snap snapshot. In the first case, the target instance's running 155 get_prop_val_str(const scf_instance_t *inst, scf_snapshot_t *snap, argument 241 if (get_prop(inst, snap, pgn, pn, pg, prop) != 0) 357 expand_token(const char *str, scf_instance_t *inst, scf_snapshot_t *snap, argument 530 ret = get_prop_val_str(inst, snap, bu 556 expand_method_tokens(const char *str, scf_instance_t *inst, scf_snapshot_t *snap, int method_type, char **retstr) argument [all...] |
H A D | method.c | 665 scf_snapshot_t *snap; local 696 snap = scf_snapshot_create(h); 697 if (snap == NULL || 698 scf_instance_get_snapshot(inst->ri_m_inst, "running", snap) != 0) { 703 scf_snapshot_destroy(snap); 704 snap = NULL; 720 if ((method = libscf_get_method(h, type, inst, snap, &restart_on, 732 scf_snapshot_destroy(snap); 740 scf_snapshot_destroy(snap); 746 scf_snapshot_destroy(snap); [all...] |
H A D | restarter.c | 321 scf_snapshot_t *snap = NULL; local 374 if (snap != NULL) 375 scf_snapshot_destroy(snap); 382 snap = NULL; 406 snap = libscf_get_running_snapshot(scf_inst); 507 switch (libscf_get_startd_properties(scf_inst, snap, &inst->ri_flags, 535 r = libscf_get_template_values(scf_inst, snap, 678 scf_snapshot_destroy(snap); 691 if (snap != NULL) 692 scf_snapshot_destroy(snap); 1674 scf_snapshot_t *snap; local [all...] |
/illumos-gate/usr/src/cmd/svc/svcadm/ |
H A D | synch.c | 453 scf_snapshot_t *snap; local 466 (snap = scf_snapshot_create(h)) == NULL || 505 if (scf_instance_get_snapshot(inst, "running", snap) != 0) { 508 scf_snapshot_destroy(snap); 509 snap = NULL; 512 if (scf_iter_instance_pgs_typed_composed(iter, inst, snap, 582 if (snap != NULL) 583 scf_snapshot_destroy(snap);
|
H A D | svcadm.c | 1027 scf_snapshot_t *snap; local 1080 if ((snap = scf_snapshot_create(h)) == NULL || 1100 if (scf_instance_get_snapshot(inst, "running", snap) != 0) { 1104 scf_snapshot_destroy(snap); 1105 snap = NULL; 1109 if (scf_instance_get_pg_composed(inst, snap, SCF_PG_GENERAL, pg) != 0) { 1175 if (scf_iter_instance_pgs_typed_composed(pg_iter, inst, snap, 1316 scf_snapshot_destroy(snap);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | dtrace_subr.c | 134 dtrace_hrestime_t snap; local 139 snap.dthr_lock = dtrace_hrestime[i].dthr_lock; 141 snap.dthr_hrestime = dtrace_hrestime[i].dthr_hrestime; 142 snap.dthr_hrtime = dtrace_hrestime[i].dthr_hrtime; 143 snap.dthr_adj = dtrace_hrestime[i].dthr_adj; 146 if ((snap.dthr_lock & ~1) == dtrace_hrestime[i].dthr_lock) 162 nslt = dtrace_gethrtime() - snap.dthr_hrtime; 165 now = ((hrtime_t)snap.dthr_hrestime.tv_sec * (hrtime_t)NANOSEC) + 166 snap.dthr_hrestime.tv_nsec; 168 if (snap [all...] |
/illumos-gate/usr/src/lib/liblgrp/common/ |
H A D | lgrp.c | 55 static int lgrp_cpus_hier(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp, 145 parent_orphans(lgrp_snapshot_header_t *snap) argument 154 if (snap == NULL || snap->ss_info == NULL || 155 snap->ss_parents == NULL || snap->ss_root < 0 || 156 snap->ss_root >= snap->ss_nlgrps_max) 159 nlgrpsmax = snap->ss_nlgrps_max; 160 root = &snap 213 prune_child(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp) argument 243 prune_cpus(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp, processorid_t *cpus, int ncpus) argument 311 prune_tree(lgrp_snapshot_header_t *snap) argument 398 lgrp_snapshot_header_t *snap; local 519 lgrp_snapshot_header_t *snap; local 557 lgrp_snapshot_header_t *snap; local 575 lgrp_snapshot_header_t *snap; local 594 lgrp_snapshot_header_t *snap; local 616 lgrp_snapshot_header_t *snap; local 695 lgrp_snapshot_header_t *snap; local 762 lgrp_cpus_hier(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp, processorid_t **cpuids, uint_t *count) argument 841 lgrp_snapshot_header_t *snap; local 920 lgrp_snapshot_header_t *snap; local 1029 lgrp_snapshot_header_t *snap; local 1081 lgrp_snapshot_header_t *snap; local 1138 lgrp_snapshot_header_t *snap; local [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | bufmod.c | 374 uint_t snap; local 377 snap = *(uint_t *)mp->b_cont->b_rptr; 382 fudge = snap <= 100 ? 4 : 383 snap <= 400 ? 2 : 385 sop->so_hiwat = SNIT_HIWAT(snap, fudge); 386 sop->so_lowat = SNIT_LOWAT(snap, fudge); 814 uint_t snap; local 817 snap = *(uint_t *)mp->b_cont->b_rptr; 822 fudge = (snap <= 100) ? 4 : 823 (snap < [all...] |
H A D | gldutil.c | 1194 /* create the snap header */ 1195 struct llc_snap_hdr *snap; local 1197 snap = (struct llc_snap_hdr *)(nmp->b_rptr); 1198 *snap = llc_snap_def; 1199 SET_NET_USHORT(snap->type, type); 1255 /* create the snap header */ 1256 struct llc_snap_hdr *snap; local 1258 snap = (struct llc_snap_hdr *)(nmp->b_rptr); 1259 *snap = llc_snap_def; 1260 snap 1627 struct llc_snap_hdr *snap; local 1733 struct llc_snap_hdr *snap; local [all...] |
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | svcctl_scm.c | 185 scf_snapshot_t *snap; local 187 snap = scf_snapshot_create(mgr_ctx->mc_scf_hdl); 188 if (snap == NULL) 191 if (scf_instance_get_snapshot(inst, "running", snap) == 0) 192 return (snap); 197 scf_snapshot_destroy(snap); 215 scf_snapshot_t *snap = NULL; local 219 snap = svcctl_scm_get_running_snapshot(mgr_ctx, inst); 221 r = scf_instance_get_pg_composed(inst, snap, pgname, 225 if (snap) [all...] |
/illumos-gate/usr/src/lib/libnwam/common/ |
H A D | libnwam_util.c | 876 scf_snapshot_t *snap = NULL; local 889 (snap = scf_snapshot_create(h)) == NULL || 902 if (scf_instance_get_snapshot(inst, "running", snap) != 0) { 903 scf_snapshot_destroy(snap); 904 snap = NULL; 906 if (scf_instance_get_pg_composed(inst, snap, pgname, pg) != 0 || 919 if (snap != NULL) 920 scf_snapshot_destroy(snap);
|
/illumos-gate/usr/src/lib/libipmp/common/ |
H A D | ipmp_query.c | 769 ipmp_snap_t *snap; local 774 snap = NULL; 778 retval = ipmp_snap_take(statep, &snap); 789 statep->st_snap = snap; 801 ipmp_snap_t *snap; local 803 snap = malloc(sizeof (ipmp_snap_t)); 804 if (snap == NULL) 807 snap->sn_grlistp = NULL; 808 snap->sn_grinfolistp = NULL; 809 snap 822 ipmp_snap_free(ipmp_snap_t *snap) argument 856 ipmp_snap_addgroupinfo(ipmp_snap_t *snap, ipmp_groupinfo_t *grinfop) argument 884 ipmp_snap_addifinfo(ipmp_snap_t *snap, ipmp_ifinfo_t *ifinfop) argument 912 ipmp_snap_addaddrinfo(ipmp_snap_t *snap, ipmp_addrinfo_t *adinfop) argument 940 ipmp_snap_getgroupinfo(ipmp_snap_t *snap, const char *name) argument 958 ipmp_snap_getifinfo(ipmp_snap_t *snap, const char *name) argument 976 ipmp_snap_getaddrinfo(ipmp_snap_t *snap, const char *grname, struct sockaddr_storage *addrp) argument 998 ipmp_snap_t *snap, *osnap; local [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_rpc_adm.c | 107 fmd_ustat_snap_t snap; local 124 if (fmd_modstat_snapshot(mp, &snap) == 0) { 125 rms->rms_buf.rms_buf_val = snap.uss_buf; 126 rms->rms_buf.rms_buf_len = snap.uss_len;
|
/illumos-gate/usr/src/cmd/kbd/ |
H A D | kbd.c | 637 scf_snapshot_t *snap = NULL; local 652 (snap = scf_snapshot_create(h)) == NULL || 664 if (scf_instance_get_snapshot(inst, "running", snap) != 0) { 665 scf_snapshot_destroy(snap); 666 snap = NULL; 669 if (scf_instance_get_pg_composed(inst, snap, KBD_PG, pg) != 0) { 793 if (snap != NULL) 794 scf_snapshot_destroy(snap);
|
/illumos-gate/usr/src/cmd/svc/svcprop/ |
H A D | svcprop.c | 380 scf_snapshot_t *snap = scf_snapshot_create(hndl); local 382 if (snap == NULL) 385 if (scf_instance_get_snapshot(inst, snapshot, snap) == -1) { 393 scf_snapshot_destroy(snap); 394 snap = NULL; 404 return (snap); 415 scf_snapshot_t *snap = NULL; local 435 snap = get_snapshot(ent.u.inst, snapshot); 438 snap) == -1) 440 if (snap) [all...] |
/illumos-gate/usr/src/lib/libscf/common/ |
H A D | notify_params.c | 196 scf_snapshot_t *snap = scf_snapshot_create(h); local 208 if (snap == NULL || slvl == NULL) 210 if (scf_instance_get_snapshot(i, "running", snap) != 0) 214 if (scf_instance_get_pg_composed(i, snap, n, pg) != 0) 217 if (scf_snapshot_get_base_snaplevel(snap, slvl) != 0 || 229 scf_snapshot_destroy(snap);
|
/illumos-gate/usr/src/lib/libscf/inc/ |
H A D | libscf_priv.h | 165 * _scf_snapshot_attach(inst, snap), scf_snapshot_update() will be 166 * required for any open references to snap or snap2 to see the new 222 scf_snapshot_t *snap; member in struct:scf_simple_handle
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlbridge.c | 179 get_composed_properties(const char *lpg, boolean_t snap, scf_state_t *sstate) argument 185 if (snap) {
|