Lines Matching refs:topology
1170 struct vm_cpu_topology topology; in vm_set_topology() local
1172 bzero(&topology, sizeof (struct vm_cpu_topology)); in vm_set_topology()
1173 topology.sockets = sockets; in vm_set_topology()
1174 topology.cores = cores; in vm_set_topology()
1175 topology.threads = threads; in vm_set_topology()
1176 topology.maxcpus = maxcpus; in vm_set_topology()
1177 return (ioctl(ctx->fd, VM_SET_TOPOLOGY, &topology)); in vm_set_topology()
1184 struct vm_cpu_topology topology; in vm_get_topology() local
1187 bzero(&topology, sizeof (struct vm_cpu_topology)); in vm_get_topology()
1188 error = ioctl(ctx->fd, VM_GET_TOPOLOGY, &topology); in vm_get_topology()
1190 *sockets = topology.sockets; in vm_get_topology()
1191 *cores = topology.cores; in vm_get_topology()
1192 *threads = topology.threads; in vm_get_topology()
1193 *maxcpus = topology.maxcpus; in vm_get_topology()