Changeset View
Changeset View
Standalone View
Standalone View
share/man/man4/sndstat.4
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
place the following lines in the | place the following lines in the | ||||
kernel configuration file: | kernel configuration file: | ||||
.Bd -ragged -offset indent | .Bd -ragged -offset indent | ||||
.Cd "device sound" | .Cd "device sound" | ||||
.Ed | .Ed | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The ioctl interface provided by | The ioctl interface provided by | ||||
.Pa /dev/sndstat | .Pa /dev/sndstat | ||||
device allows callers to enumeration PCM audio devices available for use. | device allows callers to enumerate PCM audio devices available for use. | ||||
bjk: Start the new sentence on a new line. | |||||
Not Done Inline ActionsSeems like an extra whitespace was added after the sentence stop here. bcr: Seems like an extra whitespace was added after the sentence stop here. | |||||
In other words, it provides means to get the list of all audio devices | |||||
available to the system. | |||||
.Sh IOCTLS | .Sh IOCTLS | ||||
For all ioctls requiring data exchange between the subsystem and callers, | For ioctl calls that take an argument, the following structure is used: | ||||
Done Inline ActionsSince some of the ioctl calls do not take arguments, I suggests "for ioctl calls that takes an argument, the following structure is used:" khng: Since some of the ioctl calls do not take arguments, I suggests "for ioctl calls that takes an… | |||||
the following structures are used to describe a serialized nvlist: | |||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
struct sndstioc_nv_arg { | struct sndstioc_nv_arg { | ||||
size_t nbytes; | size_t nbytes; | ||||
void *buf; | void *buf; | ||||
}; | }; | ||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
Here is an example of an nvlist, with explanations of the common fields: | Here is an example of an nvlist object with explanations of the common fields: | ||||
Done Inline ActionsI think "objects" plural (though there's not quite enough context posted to be sure). There's a singular/plural mismatch -- we want either "an nvlist object" of "nvlist objects" bjk: I think "objects" plural (though there's not quite enough context posted to be sure). There's… | |||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
Done Inline ActionsThe .Fa buf field points to a buffer containing a packed nvlist. The .Fa nbytes field indicates the size of the packed nvlist if a packed nvlist is to be submitted to the subsystem, or the size of the buffer if a packed nvlist is to be retrieved from the subsystem. And for explaining what nvlist is we should leave that to nv(9). khng: ```
The
.Fa buf
field points to a buffer containing a packed nvlist. The
.Fa nbytes
field… | |||||
dsps (NVLIST ARRAY): 1 | dsps (NVLIST ARRAY): 1 | ||||
from_user (BOOL): FALSE | from_user (BOOL): FALSE | ||||
nameunit (STRING): [pcm0] | nameunit (STRING): [pcm0] | ||||
devnode (STRING): [dsp0] | devnode (STRING): [dsp0] | ||||
desc (STRING): [Generic (0x8086) (Analog Line-out)] | desc (STRING): [Generic (0x8086) (Analog Line-out)] | ||||
pchan (NUMBER): 1 (1) (0x1) | pchan (NUMBER): 1 (1) (0x1) | ||||
rchan (NUMBER): 0 (0) (0x0) | rchan (NUMBER): 0 (0) (0x0) | ||||
info_play (NVLIST): | info_play (NVLIST): | ||||
▲ Show 20 Lines • Show All 206 Lines • Show Last 20 Lines |
Start the new sentence on a new line.