Lines Matching refs:topology
2115 struct vm_cpu_topology topology; in vm_set_topology() local
2117 bzero(&topology, sizeof (struct vm_cpu_topology)); in vm_set_topology()
2118 topology.sockets = sockets; in vm_set_topology()
2119 topology.cores = cores; in vm_set_topology()
2120 topology.threads = threads; in vm_set_topology()
2121 topology.maxcpus = maxcpus; in vm_set_topology()
2122 return (ioctl(ctx->fd, VM_SET_TOPOLOGY, &topology)); in vm_set_topology()
2129 struct vm_cpu_topology topology; in vm_get_topology() local
2132 bzero(&topology, sizeof (struct vm_cpu_topology)); in vm_get_topology()
2133 error = ioctl(ctx->fd, VM_GET_TOPOLOGY, &topology); in vm_get_topology()
2135 *sockets = topology.sockets; in vm_get_topology()
2136 *cores = topology.cores; in vm_get_topology()
2137 *threads = topology.threads; in vm_get_topology()
2138 *maxcpus = topology.maxcpus; in vm_get_topology()