/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | method.c | 106 method_record_start(restarter_inst_t *inst) in method_record_start() argument 108 int index = inst->ri_start_index++ % RINST_START_TIMES; in method_record_start() 110 inst->ri_start_time[index] = gethrtime(); in method_record_start() 126 method_rate_critical(restarter_inst_t *inst) in method_rate_critical() argument 130 uint_t n = inst->ri_start_index; in method_rate_critical() 140 if (instance_is_wait_style(inst)) in method_rate_critical() 148 if (scf_read_propvec(inst->ri_i.i_fmri, "startd", in method_rate_critical() 157 if (inst->ri_start_index < critical_failure_count) in method_rate_critical() 161 (inst->ri_start_time[(n - 1) % critical_failure_count] - in method_rate_critical() 162 inst->ri_start_time[n % critical_failure_count]) / in method_rate_critical() [all …]
|
H A D | restarter.c | 153 reset_start_times(restarter_inst_t *inst) in reset_start_times() argument 155 inst->ri_start_index = 0; in reset_start_times() 156 bzero(inst->ri_start_time, sizeof (inst->ri_start_time)); in reset_start_times() 189 restarter_inst_t *inst; in inst_lookup_by_id() local 192 inst = uu_list_find(instance_list.ril_instance_list, &id, NULL, NULL); in inst_lookup_by_id() 193 if (inst != NULL) in inst_lookup_by_id() 194 MUTEX_LOCK(&inst->ri_lock); in inst_lookup_by_id() 197 if (inst != NULL) { in inst_lookup_by_id() 198 while (inst->ri_method_thread != 0 && in inst_lookup_by_id() 199 !pthread_equal(inst->ri_method_thread, pthread_self())) { in inst_lookup_by_id() [all …]
|
H A D | libscf.c | 108 libscf_get_running_snapshot(scf_instance_t *inst) in libscf_get_running_snapshot() argument 113 h = scf_instance_handle(inst); in libscf_get_running_snapshot() 121 if (scf_instance_get_snapshot(inst, SMF_SNAPSHOT_RUNNING, snap) == 0) in libscf_get_running_snapshot() 133 libscf_get_or_make_running_snapshot(scf_instance_t *inst, const char *fmri, in libscf_get_or_make_running_snapshot() argument 139 h = scf_instance_handle(inst); in libscf_get_or_make_running_snapshot() 145 if (scf_instance_get_snapshot(inst, SMF_SNAPSHOT_RUNNING, snap) == 0) in libscf_get_or_make_running_snapshot() 165 if (_scf_snapshot_take_new(inst, SMF_SNAPSHOT_RUNNING, snap) == 0) { in libscf_get_or_make_running_snapshot() 193 scf_instance_t *inst = NULL; in libscf_snapshots_poststart() local 197 r = libscf_fmri_get_instance(h, fmri, &inst); in libscf_snapshots_poststart() 216 running = libscf_get_or_make_running_snapshot(inst, fmri, retake); in libscf_snapshots_poststart() [all …]
|
H A D | env.c | 124 valid_env_var(const char *var, const restarter_inst_t *inst, const char *path) in valid_env_var() argument 129 if (inst != NULL) in valid_env_var() 130 log_instance(inst, B_FALSE, "Invalid environment " in valid_env_var() 134 if (inst != NULL) in valid_env_var() 135 log_instance(inst, B_FALSE, "Invalid environment " in valid_env_var() 147 find_dup(const char *var, char **env, const restarter_inst_t *inst) in find_dup() argument 166 if (inst != NULL && p != env && in find_dup() 168 log_instance(inst, B_FALSE, "Ignoring duplicate " in find_dup() 204 const restarter_inst_t *inst, const char *method) in set_smf_env() argument 228 if (inst) { in set_smf_env() [all …]
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockfilter.c | 191 sof_instance_t *inst; in sof_setsockopt_impl() local 208 for (inst = so->so_filter_top; inst != NULL; in sof_setsockopt_impl() 209 inst = inst->sofi_next) { in sof_setsockopt_impl() 210 if (strncmp(inst->sofi_filter->sofe_name, in sof_setsockopt_impl() 230 inst = sof_instance_create(ent, so); in sof_setsockopt_impl() 234 if (inst == NULL) in sof_setsockopt_impl() 243 sof_instance_destroy(inst); in sof_setsockopt_impl() 249 inst->sofi_ops = &ent->sofe_mod->sofm_ops; in sof_setsockopt_impl() 251 SOF_STAT_ADD(inst, tot_active_attach, 1); in sof_setsockopt_impl() 252 if (inst->sofi_ops->sofop_attach_active != NULL) { in sof_setsockopt_impl() [all …]
|
/illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
H A D | libvarpd.c | 142 varpd_instance_t *inst, lookup; in libvarpd_instance_create() local 156 inst = umem_alloc(sizeof (varpd_instance_t), UMEM_DEFAULT); in libvarpd_instance_create() 157 if (inst == NULL) in libvarpd_instance_create() 160 inst->vri_id = id_alloc(vip->vdi_idspace); in libvarpd_instance_create() 161 if (inst->vri_id == -1) in libvarpd_instance_create() 164 inst->vri_linkid = linkid; in libvarpd_instance_create() 165 inst->vri_vnetid = vid; in libvarpd_instance_create() 166 inst->vri_mode = plugin->vpp_mode; in libvarpd_instance_create() 167 inst->vri_dest = dest; in libvarpd_instance_create() 168 inst->vri_plugin = plugin; in libvarpd_instance_create() [all …]
|
H A D | libvarpd_overlay.c | 74 libvarpd_overlay_associate(varpd_instance_t *inst) in libvarpd_overlay_associate() argument 77 varpd_impl_t *vip = inst->vri_impl; in libvarpd_overlay_associate() 80 ota.ota_linkid = inst->vri_linkid; in libvarpd_overlay_associate() 81 ota.ota_mode = inst->vri_mode; in libvarpd_overlay_associate() 82 ota.ota_id = inst->vri_id; in libvarpd_overlay_associate() 83 ota.ota_provides = inst->vri_dest; in libvarpd_overlay_associate() 87 ret = inst->vri_plugin->vpp_ops->vpo_default(inst->vri_private, in libvarpd_overlay_associate() 100 libvarpd_overlay_disassociate(varpd_instance_t *inst) in libvarpd_overlay_disassociate() argument 103 varpd_impl_t *vip = inst->vri_impl; in libvarpd_overlay_disassociate() 105 otid.otid_linkid = inst->vri_linkid; in libvarpd_overlay_disassociate() [all …]
|
H A D | libvarpd_persist.c | 198 libvarpd_persist_instance(varpd_impl_t *vip, varpd_instance_t *inst) in libvarpd_persist_instance() argument 214 if ((err = nvlist_add_uint64(nvl, "vri_id", inst->vri_id)) != 0) in libvarpd_persist_instance() 217 if ((err = nvlist_add_uint32(nvl, "vri_linkid", inst->vri_linkid)) != 0) in libvarpd_persist_instance() 221 (uint32_t)inst->vri_dest)) != 0) in libvarpd_persist_instance() 224 (uint32_t)inst->vri_mode)) != 0) in libvarpd_persist_instance() 228 inst->vri_plugin->vpp_name)) != 0) in libvarpd_persist_instance() 231 err = inst->vri_plugin->vpp_ops->vpo_save(inst->vri_private, cvl); in libvarpd_persist_instance() 238 err = libvarpd_persist_nvlist(vip->vdi_persistfd, inst->vri_id, nvl); in libvarpd_persist_instance() 247 libvarpd_torch_instance(varpd_impl_t *vip, varpd_instance_t *inst) in libvarpd_torch_instance() argument 258 if (snprintf(buf, sizeof (buf), "%lld.varpd", inst->vri_id) >= 32) in libvarpd_torch_instance() [all …]
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sse.c | 64 __fex_parse_sse(ucontext_t *uap, sseinst_t *inst) in __fex_parse_sse() argument 100 inst->op = (int)cvtsi2ss + simd + dbl; in __fex_parse_sse() 102 inst->op = (int)inst->op + (rex & 8); in __fex_parse_sse() 106 inst->op = (int)cvttss2si + simd + dbl; in __fex_parse_sse() 108 inst->op = (int)inst->op + (rex & 8); in __fex_parse_sse() 112 inst->op = (int)cvtss2si + simd + dbl; in __fex_parse_sse() 114 inst->op = (int)inst->op + (rex & 8); in __fex_parse_sse() 121 inst->op = (int)ucomiss + dbl; in __fex_parse_sse() 128 inst->op = (int)comiss + dbl; in __fex_parse_sse() 132 inst->op = (int)sqrtss + simd + dbl; in __fex_parse_sse() [all …]
|
/illumos-gate/usr/src/uts/sparc/fpu/ |
H A D | fpu_simulator.c | 170 fp_inst_type inst, /* FPU instruction to simulate. */ in _fp_fpu_simulator() argument 182 nrs1 = inst.rs1; in _fp_fpu_simulator() 183 nrs2 = inst.rs2; in _fp_fpu_simulator() 184 nrd = inst.rd; in _fp_fpu_simulator() 194 if (inst.op3 == 0x37) { /* IMPDEP2B FMA-fused opcode */ in _fp_fpu_simulator() 199 fma_inst = (fp_fma_inst_type *) &inst; in _fp_fpu_simulator() 259 if (inst.op3 == 0x35) { /* fpop2 */ in _fp_fpu_simulator() 262 if ((inst.opcode & 0xf) == 0) { in _fp_fpu_simulator() 263 if ((fp_notp) && (inst.prec == 0)) in _fp_fpu_simulator() 266 return (fmovcc(pfpsd, inst, pfsr)); /* fmovcc */ in _fp_fpu_simulator() [all …]
|
/illumos-gate/usr/src/lib/libdisasm/common/ |
H A D | dis_s390x.c | 207 union inst { union 1858 fmt_zero(uint64_t addr, union inst *inst, char *buf, size_t buflen, int flags) in fmt_zero() argument 1865 fmt_diag(uint64_t addr, union inst *inst, char *buf, size_t buflen, int flags) in fmt_diag() argument 1868 val_8_16(inst->diag.par1, inst->diag.par2)); in fmt_diag() 1873 fmt_e(uint64_t addr, union inst *inst, char *buf, size_t buflen, int flags) in fmt_e() argument 1880 fmt_i(uint64_t addr, union inst *inst, char *buf, size_t buflen, int flags) in fmt_i() argument 1882 (void) snprintf(buf, buflen, "%#x", inst->i.i); in fmt_i() 1887 fmt_ie(uint64_t addr, union inst *inst, char *buf, size_t buflen, int flags) in fmt_ie() argument 1889 (void) snprintf(buf, buflen, "%u,%u", inst->ie.i1, inst->ie.i2); in fmt_ie() 1894 fmt_mii(uint64_t addr, union inst *inst, char *buf, size_t buflen, int flags) in fmt_mii() argument [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | inetd.c | 280 instance_stopped(const instance_t *inst) in instance_stopped() argument 282 return ((inst->cur_istate == IIS_OFFLINE) || in instance_stopped() 283 (inst->cur_istate == IIS_MAINTENANCE) || in instance_stopped() 284 (inst->cur_istate == IIS_DISABLED) || in instance_stopped() 285 (inst->cur_istate == IIS_UNINITIALIZED)); in instance_stopped() 338 update_instance_states(instance_t *inst, internal_inst_state_t new_cur_state, in update_instance_states() argument 341 internal_inst_state_t old_cur = inst->cur_istate; in update_instance_states() 342 internal_inst_state_t old_next = inst->next_istate; in update_instance_states() 349 inst->cur_istate = new_cur_state; in update_instance_states() 350 inst->next_istate = new_next_state; in update_instance_states() [all …]
|
H A D | wait.c | 52 instance_t *inst; /* pointer to associated instance */ member 160 methods[mp->method].name, mp->inst->fmri); in method_timeout() 162 mp->inst->timer_id = -1; in method_timeout() 165 process_start_term(mp->inst, mp->proto_name); in method_timeout() 167 process_non_start_term(mp->inst, IMRET_FAILURE); in method_timeout() 216 me->inst = (instance_t *)ins; in register_method() 277 if (me->inst->timer_id != -1) in unregister_method() 278 cancel_inst_timer(me->inst); in unregister_method() 296 unregister_instance_methods(const instance_t *inst) in unregister_instance_methods() argument 301 if (me->inst == inst) { in unregister_instance_methods() [all …]
|
/illumos-gate/usr/src/uts/sparc/v9/os/ |
H A D | simulator.c | 77 uint_t inst, op3, asi = 0; in do_unaligned() local 94 inst = fetch_user_instr((caddr_t)rp->r_pc); in do_unaligned() 96 op3 = (inst >> 19) & 0x3f; in do_unaligned() 97 rd = (inst >> 25) & 0x1f; in do_unaligned() 98 rs1 = (inst >> 14) & 0x1f; in do_unaligned() 99 rs2 = inst & 0x1f; in do_unaligned() 100 floatflg = (inst >> 24) & 1; in do_unaligned() 101 immflg = (inst >> 13) & 1; in do_unaligned() 105 if ((inst >> 30) != 3) in do_unaligned() 109 if ((inst & 0xc1680000) == 0xc0680000) in do_unaligned() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | gen.c | 211 ho = rule->inst->ho; in gen_res_set() 216 nw = rule->inst->nw; in gen_res_set() 294 struct irs_inst *inst; in add_rule() local 316 new->inst = &irs->accessors[acc]; in add_rule() 351 inst = &irs->accessors[acc]; in add_rule() 352 if (inst->acc == NULL && accs[acc] != NULL) in add_rule() 353 inst->acc = (*accs[acc])(irs->options); in add_rule() 354 if (inst->acc != NULL) { in add_rule() 355 if (inst->gr == NULL && inst->acc->gr_map != NULL) in add_rule() 356 inst->gr = (*inst->acc->gr_map)(inst->acc); in add_rule() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | epic.c | 113 #define getsoftc(inst) ((struct epic_softc *)ddi_get_soft_state(statep, \ argument 114 (inst))) 171 int inst; in epic_getinfo() local 175 inst = (getminor((dev_t)arg)); in epic_getinfo() 179 if ((softc = getsoftc(inst)) == NULL) { in epic_getinfo() 187 *result = (void *)(uintptr_t)inst; in epic_getinfo() 200 int inst; in epic_attach() local 209 inst = ddi_get_instance(dip); in epic_attach() 210 (void) sprintf(name, "env-monitor%d", inst); in epic_attach() 211 minor = inst; in epic_attach() [all …]
|
H A D | pic16f747.c | 117 #define getsoftc(inst) ((struct pic_softc *)ddi_get_soft_state(statep, (inst))) argument 174 int inst; in pic_getinfo() local 178 inst = PIC_MINOR_TO_INST(getminor((dev_t)arg)); in pic_getinfo() 182 if ((softc = getsoftc(inst)) == NULL) { in pic_getinfo() 190 *result = (void *)((uintptr_t)inst); in pic_getinfo() 203 int inst; in pic_attach() local 214 inst = ddi_get_instance(dip); in pic_attach() 215 if (inst >= MAX_PIC_INSTANCES) { in pic_attach() 220 (void) sprintf(name, "env-monitor%d", inst); in pic_attach() 221 minor = PIC_INST_TO_MINOR(inst) | PIC_UNIT_TO_MINOR(0); in pic_attach() [all …]
|
H A D | sysioerr.c | 93 ushort_t id, ushort_t inst, int cleared, 398 ushort_t inst = ecc->flt_inst; in sysio_log_ue_err() local 403 inst, (uint32_t)(t_afsr>>32), (uint32_t)t_afsr, in sysio_log_ue_err() 409 inst, (uint32_t)(t_afsr>>32), (uint32_t)t_afsr, in sysio_log_ue_err() 415 inst, (uint32_t)(t_afsr>>32), (uint32_t)t_afsr, in sysio_log_ue_err() 424 inst, (uint32_t)(t_afsr>>32), (uint32_t)t_afsr, in sysio_log_ue_err() 430 inst, (uint32_t)(t_afsr>>32), (uint32_t)t_afsr, in sysio_log_ue_err() 436 inst, (uint32_t)(t_afsr>>32), (uint32_t)t_afsr, in sysio_log_ue_err() 508 ushort_t inst = ecc->flt_inst; in sysio_log_ce_err() local 523 cmn_err(CE_CONT, fmtstr, inst, (uint32_t)(t_afsr>>32), in sysio_log_ce_err() [all …]
|
/illumos-gate/usr/src/uts/sun4/io/ |
H A D | tod.c | 150 int inst = getminor((dev_t)arg); in tod_getinfo() local 157 if ((softc = getsoftc(inst)) == NULL) { in tod_getinfo() 166 *result = (void *)(uintptr_t)inst; in tod_getinfo() 180 int inst; in tod_attach() local 187 inst = ddi_get_instance(dip); in tod_attach() 193 (void) sprintf(name, "tod%d", inst); in tod_attach() 194 if (ddi_create_minor_node(dip, name, S_IFCHR, inst, in tod_attach() 201 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS) in tod_attach() 204 softc = getsoftc(inst); in tod_attach() 212 inst = ddi_get_instance(dip); in tod_attach() [all …]
|
/illumos-gate/usr/src/uts/common/io/vscan/ |
H A D | vscan_drv.c | 299 ulong_t inst = getminor((dev_t)arg); in vscan_drv_getinfo() local 306 *result = (void *)inst; in vscan_drv_getinfo() 407 int inst = getminor(*devp); in vscan_drv_open() local 409 if ((inst < 0) || (inst > vs_nodes_max)) in vscan_drv_open() 419 if (inst == 0) { in vscan_drv_open() 436 (vscan_drv_inst_state[inst] != VS_DRV_INST_INIT)) { in vscan_drv_open() 440 vscan_drv_inst_state[inst] = VS_DRV_INST_OPEN; in vscan_drv_open() 463 int i, inst = getminor(dev); in vscan_drv_close() local 465 if ((inst < 0) || (inst > vs_nodes_max)) in vscan_drv_close() 469 if (inst != 0) { in vscan_drv_close() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | getinst.c | 66 char *inst; in getinst() local 131 inst = sameinst; in getinst() 134 return (inst); in getinst() 157 inst = info[samearch].pkginst; in getinst() 160 return (inst); in getinst() 176 inst = nextinst(); in getinst() 177 return (inst); in getinst() 191 inst = prompt(info, npkgs); in getinst() 192 if (strcmp(inst, "new") == 0) { in getinst() 193 inst = nextinst(); in getinst() [all …]
|
/illumos-gate/usr/src/uts/sun4u/mpxu/io/ |
H A D | tsalarm.c | 162 int inst = getminor((dev_t)arg); in tsalarm_getinfo() local 169 if ((softc = getsoftc(inst)) == NULL) { in tsalarm_getinfo() 178 *result = (void *)(uintptr_t)inst; in tsalarm_getinfo() 192 int inst; in tsalarm_attach() local 198 inst = ddi_get_instance(dip); in tsalarm_attach() 202 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS) in tsalarm_attach() 205 softc = getsoftc(inst); in tsalarm_attach() 231 ddi_soft_state_free(statep, inst); in tsalarm_attach() 242 int inst; in tsalarm_detach() local 248 inst = ddi_get_instance(dip); in tsalarm_detach() [all …]
|
/illumos-gate/usr/src/common/ficl/test/ |
H A D | ooptest.fr | 18 locals| class inst | 19 0 inst class --> .a ! 20 1 inst class --> .b ! 31 locals| class inst | 32 inst class --> super --> init 33 2 inst class --> .c ! 34 3 inst class --> .d ! 53 : init ( inst class -- ) 54 locals| class inst | 55 0 inst class --> m_cell1 ! [all …]
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | visinstr.c | 91 vis_inst_type inst; in vis_fpu_simulator() member 100 if ((f.inst.opf & 1) == 0) { /* double precision */ in vis_fpu_simulator() 109 switch (f.inst.opf) { in vis_fpu_simulator() 123 ftt = vis_edge(pfpsd, f.inst, pregs, prw); in vis_fpu_simulator() 128 ftt = vis_array(pfpsd, f.inst, pregs, prw); in vis_fpu_simulator() 132 ftt = vis_alignaddr(pfpsd, f.inst, pregs, prw, fp); in vis_fpu_simulator() 135 ftt = vis_bmask(pfpsd, f.inst, pregs, prw, fp); in vis_fpu_simulator() 145 ftt = vis_fcmp(pfpsd, f.inst, pregs, prw); in vis_fpu_simulator() 154 ftt = vis_fmul(pfpsd, f.inst); in vis_fpu_simulator() 161 ftt = vis_fpixel(pfpsd, f.inst, fp); in vis_fpu_simulator() [all …]
|
/illumos-gate/usr/src/uts/sparc/v9/fpu/ |
H A D | v9instr.c | 60 fp_inst_type inst; in fldst() member 64 fp.inst = pinst; in fldst() 151 fp_inst_type inst, /* FPU instruction to simulate. */ in fmovcc_fcc() argument 181 cond = (enum icc_type) (inst.rs1 & 0xf); in fmovcc_fcc() 239 nrs2 = inst.rs2; in fmovcc_fcc() 240 nrd = inst.rd; in fmovcc_fcc() 241 if (inst.prec < 2) { /* fmovs */ in fmovcc_fcc() 252 if (inst.prec > 2) { /* fmovq */ in fmovcc_fcc() 267 fp_inst_type inst, /* FPU instruction to simulate. */ in fmovcc_icc() argument 294 cond = (enum icc_type) (inst.rs1 & 0xf); in fmovcc_icc() [all …]
|