/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_alloc.h | 39 #define FMD_SLEEP 0x1 /* sleep or retry if alloc fails */ macro
|
H A D | fmd_nv.c | 36 return (fmd_alloc(size, FMD_SLEEP));
|
H A D | fmd_buf.c | 39 fmd_buf_t *bp = fmd_alloc(sizeof (fmd_buf_t), FMD_SLEEP); 41 bp->buf_name = fmd_strdup(name, FMD_SLEEP); 43 bp->buf_data = fmd_zalloc(size, FMD_SLEEP); 62 bhp->bh_hash = fmd_zalloc(sizeof (void *) * bhp->bh_hashlen, FMD_SLEEP);
|
H A D | fmd_ustat.c | 42 cp = fmd_zalloc(sizeof (fmd_ustat_chunk_t), FMD_SLEEP); 82 fmd_ustat_t *usp = fmd_zalloc(sizeof (fmd_ustat_t), FMD_SLEEP); 86 usp->us_hash = fmd_zalloc(sizeof (void *) * usp->us_hashlen, FMD_SLEEP); 195 sp = stats = fmd_alloc(sizeof (fmd_stat_t) * n, FMD_SLEEP); 256 ep = fmd_alloc(sizeof (fmd_ustat_elem_t), FMD_SLEEP); 292 sp->fmds_value.str, FMD_SLEEP);
|
H A D | fmd_dispq.c | 45 fmd_dispqelem_t *dep = fmd_alloc(sizeof (fmd_dispqelem_t), FMD_SLEEP); 47 dep->dq_name = fmd_strdup(name, FMD_SLEEP); 50 dep->dq_hash = fmd_zalloc(sizeof (void *) * dep->dq_hashlen, FMD_SLEEP); 98 fmd_dispq_t *dqp = fmd_alloc(sizeof (fmd_dispq_t), FMD_SLEEP); 143 char *p, *q, *s = fmd_strdup(pattern, FMD_SLEEP); 146 fmd_dispqlist_t *dlp = fmd_alloc(sizeof (fmd_dispqlist_t), FMD_SLEEP); 215 char *p, *q, *s = fmd_strdup(pattern, FMD_SLEEP); 218 char **patv = fmd_zalloc(sizeof (char *) * (len / 2 + 1), FMD_SLEEP);
|
H A D | fmd_thread.c | 37 fmd_thread_t *tp = fmd_alloc(sizeof (fmd_thread_t), FMD_SLEEP); 76 fmd_thread_t *tp = fmd_alloc(sizeof (fmd_thread_t), FMD_SLEEP);
|
H A D | fmd_alloc.c | 47 if (data != NULL || size == 0 || !(flags & FMD_SLEEP))
|
H A D | fmd_serd.c | 39 fmd_serd_eng_t *sgp = fmd_zalloc(sizeof (fmd_serd_eng_t), FMD_SLEEP); 41 sgp->sg_name = fmd_strdup(name, FMD_SLEEP); 61 shp->sh_hash = fmd_zalloc(sizeof (void *) * shp->sh_hashlen, FMD_SLEEP); 211 sep = fmd_alloc(sizeof (fmd_serd_elem_t), FMD_SLEEP);
|
H A D | fmd_fmri.c | 47 return (fmd_alloc(size, FMD_SLEEP)); 53 return (fmd_zalloc(size, FMD_SLEEP)); 151 p = s = fmd_alloc(n, FMD_SLEEP); 188 s2 = fmd_alloc(n + 1, FMD_SLEEP); 197 return (fmd_strdup(s, FMD_SLEEP));
|
H A D | fmd_asru.c | 81 fmd_asru_t *ap = fmd_zalloc(sizeof (fmd_asru_t), FMD_SLEEP); 87 ap->asru_name = fmd_strdup(name, FMD_SLEEP); 90 ap->asru_root = fmd_strdup(ahp->ah_dirpath, FMD_SLEEP); 91 ap->asru_uuid = fmd_strdup(uuid, FMD_SLEEP); 343 *name = fmd_alloc(*namelen + 1, FMD_SLEEP); 387 alp = fmd_zalloc(sizeof (fmd_asru_link_t), FMD_SLEEP); 390 alp->al_uuid = fmd_strdup(al_uuid, FMD_SLEEP); 413 alp->al_asru_name = got_asru ? asru_name : fmd_strdup("", FMD_SLEEP); 415 alp->al_fru_name = got_fru ? fru_name : fmd_strdup("", FMD_SLEEP); 417 alp->al_rsrc_name = got_rsrc ? rsrc_name : fmd_strdup("", FMD_SLEEP); [all...] |
H A D | fmd_conf.c | 223 pp->cp_value.cpv_str = fmd_strdup(s, FMD_SLEEP); 274 pap = fmd_alloc(sizeof (fmd_conf_path_t), FMD_SLEEP); 275 pap->cpa_argv = fmd_alloc(sizeof (char *) * patc, FMD_SLEEP); 292 pap->cpa_argv[i] = q = fmd_alloc(len + 1, FMD_SLEEP); 340 new->cpa_argv = fmd_alloc(sizeof (char *) * totc, FMD_SLEEP); 377 new_argv = fmd_alloc(sizeof (char *) * (pap->cpa_argc - 1), FMD_SLEEP); 555 char *p, *q, *s = fmd_strdup(value, FMD_SLEEP); 808 fmd_conf_t *cfp = fmd_alloc(sizeof (fmd_conf_t), FMD_SLEEP); 816 sizeof (fmd_conf_param_t) * (_fmd_conf_defc + argc), FMD_SLEEP); 820 sizeof (fmd_conf_param_t *) * cfp->cf_parhashlen, FMD_SLEEP); [all...] |
H A D | fmd_self.c | 51 self_case_t *scp = fmd_hdl_alloc(hdl, sizeof (self_case_t), FMD_SLEEP); 54 scp->sc_name = fmd_hdl_strdup(hdl, name, FMD_SLEEP);
|
H A D | fmd_trace.c | 44 fmd_tracebuf_t *tbp = fmd_zalloc(sizeof (fmd_tracebuf_t), FMD_SLEEP); 76 tbp->tb_buf = fmd_zalloc(bufsize, FMD_SLEEP);
|
H A D | fmd_idspace.c | 37 fmd_idspace_t *ids = fmd_alloc(sizeof (fmd_idspace_t), FMD_SLEEP); 60 ids->ids_hash = fmd_zalloc(sizeof (void *) * hashlen, FMD_SLEEP); 103 ida = idp = fmd_alloc(sizeof (id_t) * count, FMD_SLEEP); 201 ide = fmd_alloc(sizeof (fmd_idelem_t), FMD_SLEEP);
|
H A D | fmd_rtld.c | 56 rp = mp->mod_data = fmd_alloc(sizeof (fmd_rtld_t), FMD_SLEEP);
|
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/ |
H A D | smf_util.c | 50 fmristr = fmd_hdl_strdup(hdl, (const char *)topostr, FMD_SLEEP); 73 bufp = fmd_hdl_alloc(hdl, len, FMD_SLEEP); 76 fullname = fmd_hdl_strdup(hdl, bufp, FMD_SLEEP);
|
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/ |
H A D | fmevt_inbound_smf.c | 84 fmristr = fmd_hdl_alloc(hdl, len, FMD_SLEEP); 116 if ((ret = fmd_nvl_dup(hdl, fmri, FMD_SLEEP)) == NULL) { 175 if ((myattr = fmd_nvl_alloc(fmevt_hdl, FMD_SLEEP)) == NULL)
|
H A D | fmevt_inbound_sunos.c | 65 myattr = fmd_nvl_dup(fmevt_hdl, rawattr, FMD_SLEEP);
|
H A D | fmevt_inbound.c | 169 ns = fmd_hdl_alloc(hdl, len + 1, FMD_SLEEP); 224 obj = fmd_nvl_alloc(fmevt_hdl, FMD_SLEEP); 225 dtcr = fmd_nvl_alloc(fmevt_hdl, FMD_SLEEP); 226 site = fmd_nvl_alloc(fmevt_hdl, FMD_SLEEP); 227 ctxt = fmd_nvl_alloc(fmevt_hdl, FMD_SLEEP); 437 if ((nvl = fmd_nvl_alloc(fmevt_hdl, FMD_SLEEP)) == NULL) {
|
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
H A D | cmd_opl.c | 49 opl_cpu = fmd_hdl_alloc(hdl, sizeof (opl_cpu_t), FMD_SLEEP); 63 FMD_SLEEP); 85 sizeof (opl_cpu_t), FMD_SLEEP);
|
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/ |
H A D | gmem_mem.c | 50 char *nm = fmd_hdl_alloc(hdl, sz, FMD_SLEEP); 62 char *nm = fmd_hdl_alloc(hdl, sz, FMD_SLEEP); 74 char *nm = fmd_hdl_alloc(hdl, sz, FMD_SLEEP);
|
H A D | gmem_state.c | 54 cl = fmd_hdl_alloc(hdl, sizeof (gmem_case_closer_t), FMD_SLEEP); 144 cl = fmd_hdl_alloc(hdl, sizeof (gmem_case_closer_t), FMD_SLEEP);
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | alloc.c | 96 retval = fmd_hdl_alloc(Hdl, nbytes + HDRSIZ, FMD_SLEEP); 195 retval = fmd_hdl_alloc(Hdl, nbytes, FMD_SLEEP);
|
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/ |
H A D | cmd_mem.c | 73 char *nm = fmd_hdl_alloc(hdl, sz, FMD_SLEEP); 85 char *nm = fmd_hdl_alloc(hdl, sz, FMD_SLEEP); 97 char *nm = fmd_hdl_alloc(hdl, sz, FMD_SLEEP); 211 mn.m_name = fmd_hdl_alloc(hdl, mn.m_namelen, FMD_SLEEP);
|
H A D | cmd_util.c | 56 buf = fmd_hdl_alloc(hdl, bufsz, FMD_SLEEP);
|