cpuctl.4: Formatting nits
+ Align ioctl list + Pad code examples + Tag spdx license identifier MFC after: 3 days
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
.\"
|
||||||
|
.\" SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
.\"
|
||||||
.\" Copyright (c) 2006-2008 Stanislav Sedov <stas@FreeBSD.org>
|
.\" Copyright (c) 2006-2008 Stanislav Sedov <stas@FreeBSD.org>
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
.\"
|
.\"
|
||||||
@@ -63,7 +66,7 @@ All of the supported operations are invoked using the
|
|||||||
.Xr ioctl 2
|
.Xr ioctl 2
|
||||||
system call.
|
system call.
|
||||||
Currently, the following ioctls are defined:
|
Currently, the following ioctls are defined:
|
||||||
.Bl -tag -width CPUCTL_CPUID_COUNT
|
.Bl -tag -width indent
|
||||||
.It Dv CPUCTL_RDMSR Fa cpuctl_msr_args_t *args
|
.It Dv CPUCTL_RDMSR Fa cpuctl_msr_args_t *args
|
||||||
.It Dv CPUCTL_WRMSR Fa cpuctl_msr_args_t *args
|
.It Dv CPUCTL_WRMSR Fa cpuctl_msr_args_t *args
|
||||||
Read/write CPU machine specific register.
|
Read/write CPU machine specific register.
|
||||||
@@ -92,6 +95,7 @@ typedef struct {
|
|||||||
uint32_t data[4];
|
uint32_t data[4];
|
||||||
} cpuctl_cpuid_args_t;
|
} cpuctl_cpuid_args_t;
|
||||||
.Ed
|
.Ed
|
||||||
|
.Pp
|
||||||
It is equivalent to the
|
It is equivalent to the
|
||||||
.Dv CPUCTL_CPUID_COUNT
|
.Dv CPUCTL_CPUID_COUNT
|
||||||
request with
|
request with
|
||||||
@@ -107,6 +111,7 @@ typedef struct {
|
|||||||
uint32_t data[4];
|
uint32_t data[4];
|
||||||
} cpuctl_cpuid_count_args_t;
|
} cpuctl_cpuid_count_args_t;
|
||||||
.Ed
|
.Ed
|
||||||
|
.Pp
|
||||||
The
|
The
|
||||||
.Va level
|
.Va level
|
||||||
field indicates the CPUID level to retrieve,
|
field indicates the CPUID level to retrieve,
|
||||||
|
|||||||
Reference in New Issue
Block a user