Searched refs:mcmem (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/picl/plugins/common/memcfg/ |
H A D | piclmemcfg_comm.c | 376 struct mc_memory *mcmem; in create_logical_tree() local 384 if ((mcmem = alloca((nsegments - 1) * sizeof (mcmem->segmentids[0]) + in create_logical_tree() 385 sizeof (*mcmem))) == NULL) in create_logical_tree() 388 mcmem->nsegments = nsegments; in create_logical_tree() 393 if (ioctl(fd, MCIOC_MEM, mcmem) == -1) in create_logical_tree() 408 mcseg->id = mcmem->segmentids[i].globalid; in create_logical_tree()
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | mc-us3i.c | 437 struct mc_memory *mcmem, mcmem_in; in mc_ioctl() local 494 size = sizeof (*mcmem) + (nsegments - 1) * in mc_ioctl() 495 sizeof (mcmem->segmentids[0]); in mc_ioctl() 496 mcmem = kmem_zalloc(size, KM_SLEEP); in mc_ioctl() 498 mcmem->size = memsize; in mc_ioctl() 499 mcmem->nsegments = nsegments; in mc_ioctl() 503 mcmem->segmentids[i].globalid = seg->seg_node.id; in mc_ioctl() 504 mcmem->segmentids[i].localid = seg->seg_node.id; in mc_ioctl() 509 if (copyout(mcmem, (void *)arg, size)) in mc_ioctl() 512 kmem_free(mcmem, size); in mc_ioctl()
|
H A D | mc-us3.c | 497 struct mc_memory *mcmem, mcmem_in; in mc_ioctl() local 557 sizeof (mcmem->segmentids[0]); in mc_ioctl() 558 mcmem = kmem_zalloc(size, KM_SLEEP); in mc_ioctl() 560 mcmem->size = memsize; in mc_ioctl() 561 mcmem->nsegments = nsegments; in mc_ioctl() 565 mcmem->segmentids[i].globalid = seg->seg_node.id; in mc_ioctl() 566 mcmem->segmentids[i].localid = seg->seg_node.id; in mc_ioctl() 571 if (copyout(mcmem, (void *)arg, size)) in mc_ioctl() 574 kmem_free(mcmem, size); in mc_ioctl()
|