Lines Matching defs:unum
198 char *buf, *unum;
208 if (nvlist_lookup_string(in, FM_FMRI_MEM_UNUM, &unum) != 0) {
215 * PA then use that. Otherwise just format the unum element.
227 * If we have a well-formed unum we step over the hc:// and
230 if (strncmp(unum, "hc://", 5) == 0) {
231 unum += 5;
232 unum = strchr(unum, '/');
233 ++unum;
235 escunum = unum;
238 preunum = topo_mod_strdup(mod, unum);
265 if (escunum != unum)
289 char *unum = NULL;
307 /* Check that first component is "unum=". */
312 "%s: no unum\n", __func__);
322 /* Skip past "mem:///unum=" part". */
323 unum = bufp + len1 + len2;
325 /* Check that there is a unum string. */
326 if (*unum == NULL) {
328 "%s: null unum\n", __func__);
334 * i.e. "mem:///unum=a/b/c/paddr=<addr>/offset=<addr>
338 if ((bufp = strrchr(unum, '/')) == NULL)
383 "%s: unum=0x%p=%s\n", __func__, (void *)unum, unum);
387 err |= nvlist_add_string(fmri, FM_FMRI_MEM_UNUM, unum);