/osnet-11/usr/src/cmd/perl/contrib/Sun/Solaris/Pg/ |
H A D | Pg.pm | 192 sub cpus subroutine 194 scalar @_ == 2 or _usage("cpus(cookie, pg)"); 196 my @cpus = @{$pg->{cpus}}; 198 return (wantarray() ? _nsort(@cpus) : _collapse(@cpus)); 551 my @cpus = $c1->cpus($id); 562 foreach my $cpu (@cpus) { 708 my @cpus [all...] |
/osnet-11/usr/src/lib/fm/libfmd_agent/i386/ |
H A D | fmd_agent_i386.c | 51 nvlist_t *nvl, **nvl_array, **cpus; local 58 &cpus, &n)) != 0) 65 if ((err = nvlist_dup(cpus[i], nvl_array + i, 0)) != 0) {
|
/osnet-11/usr/src/lib/liblgrp/common/ |
H A D | lgrp.c | 296 prune_cpus(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp, processorid_t *cpus, argument 321 if (cpus == NULL && ncpus == -1) { 337 if (lgrp_cpus[i] == cpus[j]) 366 processorid_t *cpus; local 382 cpus = NULL; 384 cpus = malloc(ncpus * sizeof (processorid_t)); 385 if (pset_info(PS_MYID, NULL, &ncpus, cpus) == -1) { 386 free(cpus); 399 prune_cpus(snap, i, cpus, ncpus); 405 free(cpus); 819 processorid_t *cpus; local 892 processorid_t *cpus; local [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/common/ |
H A D | cpu_mdesc.h | 78 md_cpumap_t *cpus; /* List of cpu maps */ member in struct:md_info
|
H A D | cpu_mdesc.c | 65 for (i = 0, mcmp = chip->cpus; i < chip->ncpus; i++, mcmp++) { 100 topo_mod_dprintf(mod, "Found %d cpus\n", chip->ncpus); 102 chip->cpus = topo_mod_zalloc(mod, chip->ncpus * sizeof (md_cpumap_t)); 106 for (idx = 0, mcmp = chip->cpus; idx < chip->ncpus; idx++, mcmp++) { 210 chip->cpus = topo_mod_zalloc(mod, ncpu * sizeof (md_cpumap_t)); 214 mcmp = chip->cpus; 403 if (chip->cpus != NULL) 404 topo_mod_free(mod, chip->cpus,
|
H A D | cpu.c | 129 topo_mod_dprintf(mod, "failed to get cpus from the PRI/MD\n"); 404 topo_mod_dprintf(mod, "enumerating cpus\n"); 407 * find the min/max id of cpus per this cmp and create a cpu range 410 if ((min < 0) || (chip->cpus[i].cpumap_pid < min)) 411 min = chip->cpus[i].cpumap_pid; 412 if ((max < 0) || (chip->cpus[i].cpumap_pid > max)) 413 max = chip->cpus[i].cpumap_pid; 430 chip->cpus[i].cpumap_serialno); 433 pid = chip->cpus[i].cpumap_pid;
|
/osnet-11/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/t/ |
H A D | Lgrp_api.t | 179 my @rcpus = $c->cpus($root, LGRP_CONTENT_HIERARCHY) or 253 $l_cpus{$l1} = scalar $c->cpus($l1, LGRP_CONTENT_HIERARCHY); 257 $lgrps_nocpus++ unless $c->cpus($l1, LGRP_CONTENT_HIERARCHY); 323 my @cpu_l = $c->cpus($l, LGRP_CONTENT_DIRECT);
|
H A D | Lgrp.t | 183 my @cpus = lgrp_cpus($c, $root, LGRP_CONTENT_HIERARCHY); 185 ok(scalar @cpus, $ncpus); 251 @cpus = lgrp_cpus($c->cookie, $root, LGRP_CONTENT_HIERARCHY); 252 my @cpus1 = $c->cpus($root, LGRP_CONTENT_HIERARCHY); 253 ok(@cpus, @cpus1) or 254 print STDERR "# \@cpus: @cpus, \@cpus1: @cpus1\n";
|
/osnet-11/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/ |
H A D | Lgrp.xs | 368 processorid_t *cpus; 378 if (New(0, cpus, ncpus, processorid_t) == NULL) { 382 ncpus = lgrp_cpus(cookie, lgrp, cpus, ncpus, content); 383 PUSHARRAY(cpus, ncpus); 384 Safefree(cpus);
|
H A D | Lgrp.pm | 248 sub cpus subroutine 250 scalar @_ == 3 or _usage("cpus(class, lgrp, content)");
|
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/chip/common/ |
H A D | chip.c | 672 nvlist_t **cpus; local 681 if (fmd_agent_physcpu_info(hdl, &cpus, &ncpu) != 0) { 690 nerr -= create_chip(mod, pnode, min, max, cpus[i], auth, 692 nvlist_free(cpus[i]); 694 umem_free(cpus, sizeof (nvlist_t *) * ncpu);
|
H A D | chip_label.c | 540 nvlist_t **cpus; local 548 if (fmd_agent_physcpu_info(hdl, &cpus, &ncpu) == -1) { 557 if (nvlist_lookup_int32(cpus[i], FM_PHYSCPU_INFO_CHIP_ID, 570 nvlist_free(cpus[i]); 571 umem_free(cpus, sizeof (nvlist_t *) * ncpu);
|
/osnet-11/usr/src/lib/fm/topo/modules/sun4v/chip/common/ |
H A D | chip_sun4v.c | 86 topo_mod_dprintf(mod, "failed to get cpus from the PRI/MD\n"); 271 topo_mod_dprintf(mod, "enumerating cpus\n"); 274 * find the min/max id of cpus per this cmp and create a cpu range 276 for (i = 0, mcmp = chip->cpus; i < chip->ncpus; i++, mcmp++) { 299 for (i = 0, mcmp = chip->cpus; i < chip->ncpus; i++, mcmp++) {
|
/osnet-11/usr/src/lib/libdladm/common/ |
H A D | linkprop.c | 650 { "cpus", { "--", RESET_VAL }, NULL, 0, 655 { "cpus-effective", { "--", 0 }, 910 {"cpus", extract_cpus}, 911 {"cpus-effective", extract_cpus}, 2328 if (strcmp(pdp->pd_name, "cpus-effective") == 0) { 2383 uint32_t *cpus = mrp.mrp_cpu; local 2394 /* Can't set cpus if a pool is set */ 2407 status = dladm_range2list(pv_range, cpus, &ncpus); 2428 if (cpus[i] >= nproc) { 2433 rc = p_online(cpus[ [all...] |