Searched defs:mcmem (Results 1 - 3 of 3) sorted by relevance

/illumos-gate/usr/src/cmd/picl/plugins/common/memcfg/
H A Dpiclmemcfg_comm.c374 struct mc_memory *mcmem; local
382 if ((mcmem = alloca((nsegments - 1) * sizeof (mcmem->segmentids[0]) +
383 sizeof (*mcmem))) == NULL)
386 mcmem->nsegments = nsegments;
391 if (ioctl(fd, MCIOC_MEM, mcmem) == -1)
406 mcseg->id = mcmem->segmentids[i].globalid;
/illumos-gate/usr/src/uts/sun4u/io/
H A Dmc-us3i.c437 struct mc_memory *mcmem, mcmem_in; local
494 size = sizeof (*mcmem) + (nsegments - 1) *
495 sizeof (mcmem->segmentids[0]);
496 mcmem = kmem_zalloc(size, KM_SLEEP);
498 mcmem->size = memsize;
499 mcmem->nsegments = nsegments;
503 mcmem->segmentids[i].globalid = seg->seg_node.id;
504 mcmem->segmentids[i].localid = seg->seg_node.id;
509 if (copyout(mcmem, (void *)arg, size))
512 kmem_free(mcmem, siz
[all...]
H A Dmc-us3.c497 struct mc_memory *mcmem, mcmem_in; local
557 sizeof (mcmem->segmentids[0]);
558 mcmem = kmem_zalloc(size, KM_SLEEP);
560 mcmem->size = memsize;
561 mcmem->nsegments = nsegments;
565 mcmem->segmentids[i].globalid = seg->seg_node.id;
566 mcmem->segmentids[i].localid = seg->seg_node.id;
571 if (copyout(mcmem, (void *)arg, size))
574 kmem_free(mcmem, size);

Completed in 51 milliseconds