1a77a7ee0SJulian Elischer.\" Copyright (c) 1996 2eddc45e7SJeroen Ruigrok van der Werven.\" Julian Elischer <julian@FreeBSD.org>. All rights reserved. 3a77a7ee0SJulian Elischer.\" 4a77a7ee0SJulian Elischer.\" Redistribution and use in source and binary forms, with or without 5a77a7ee0SJulian Elischer.\" modification, are permitted provided that the following conditions 6a77a7ee0SJulian Elischer.\" are met: 7a77a7ee0SJulian Elischer.\" 1. Redistributions of source code must retain the above copyright 8a77a7ee0SJulian Elischer.\" notice, this list of conditions and the following disclaimer. 9a77a7ee0SJulian Elischer.\" 10a77a7ee0SJulian Elischer.\" 2. Redistributions in binary form must reproduce the above copyright 11a77a7ee0SJulian Elischer.\" notice, this list of conditions and the following disclaimer in the 12a77a7ee0SJulian Elischer.\" documentation and/or other materials provided with the distribution. 13a77a7ee0SJulian Elischer.\" 14a77a7ee0SJulian Elischer.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15a77a7ee0SJulian Elischer.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16a77a7ee0SJulian Elischer.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17a77a7ee0SJulian Elischer.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18a77a7ee0SJulian Elischer.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19a77a7ee0SJulian Elischer.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20a77a7ee0SJulian Elischer.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21a77a7ee0SJulian Elischer.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22a77a7ee0SJulian Elischer.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23a77a7ee0SJulian Elischer.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24a77a7ee0SJulian Elischer.\" SUCH DAMAGE. 25a77a7ee0SJulian Elischer.\" 267f3dea24SPeter Wemm.\" $FreeBSD$ 270b992c1dSWolfram Schneider.\" 28*70068a3eSMateusz Piotrowski.Dd April 8, 2022 29db35f309SDavid Greenman.Dt CD 4 303d45e180SRuslan Ermilov.Os 31db35f309SDavid Greenman.Sh NAME 32db35f309SDavid Greenman.Nm cd 335fc1fd70SGarrett Wollman.Nd SCSI CD-ROM driver 34db35f309SDavid Greenman.Sh SYNOPSIS 355fc1fd70SGarrett Wollman.Cd device cd 36db35f309SDavid Greenman.Sh DESCRIPTION 37db35f309SDavid GreenmanThe 384b66483fSRuslan Ermilov.Nm 39db35f309SDavid Greenmandriver provides support for a 405fc1fd70SGarrett Wollman.Tn SCSI 415fc1fd70SGarrett Wollman.Tn CD-ROM 425fc1fd70SGarrett Wollman(Compact Disc-Read Only Memory) drive. 435fc1fd70SGarrett WollmanIn an attempt to look like a regular disk, the 44db35f309SDavid Greenman.Nm 454a8d0283SMike Pritcharddriver synthesizes a partition table, with one partition covering the entire 465fc1fd70SGarrett Wollman.Tn CD-ROM . 475fc1fd70SGarrett WollmanIt is possible to modify this partition table using 485fc1fd70SGarrett Wollman.Xr disklabel 8 , 495fc1fd70SGarrett Wollmanbut it will only last until the 505fc1fd70SGarrett Wollman.Tn CD-ROM 515fc1fd70SGarrett Wollmanis unmounted. 52db35f309SDavid GreenmanIn general the interfaces are similar to those described by 53814b16baSGlen Barber.Xr ada 4 545fc1fd70SGarrett Wollmanand 552d8eb2c0SKenneth D. Merry.Xr da 4 . 56db35f309SDavid Greenman.Pp 575fc1fd70SGarrett WollmanAs the 585fc1fd70SGarrett Wollman.Tn SCSI 595fc1fd70SGarrett Wollmanadapter is probed during boot, the 605fc1fd70SGarrett Wollman.Tn SCSI 616d249eeeSSheldon Hearnbus is scanned for devices. 626d249eeeSSheldon HearnAny devices found which answer as CDROM 632d8eb2c0SKenneth D. Merry(type 5) or WORM (type 4) type devices will be `attached' to the 64db35f309SDavid Greenman.Nm 652460bdf0SPeter Dufaultdriver. 66dd5527c6SMike PritchardPrior to 67dd5527c6SMike Pritchard.Fx 2.1 , 68dd5527c6SMike Pritchardthe first device found will be attached as 695fc1fd70SGarrett Wollman.Li cd0 705fc1fd70SGarrett Wollmanthe next, 715fc1fd70SGarrett Wollman.Li cd1 , 72db35f309SDavid Greenmanetc. 73dd5527c6SMike PritchardBeginning in 74dd5527c6SMike Pritchard.Fx 2.1 75dd5527c6SMike Pritchardit is possible to specify what cd unit a device should 762460bdf0SPeter Dufaultcome on line as; refer to 772460bdf0SPeter Dufault.Xr scsi 4 782460bdf0SPeter Dufaultfor details on kernel configuration. 79db35f309SDavid Greenman.Pp 80db35f309SDavid GreenmanThe system utility 815fc1fd70SGarrett Wollman.Xr disklabel 8 82db35f309SDavid Greenmanmay be used to read the synthesized 835fc1fd70SGarrett Wollmandisk label 845fc1fd70SGarrett Wollmanstructure, which will contain correct figures for the size of the 855fc1fd70SGarrett Wollman.Tn CD-ROM 86db35f309SDavid Greenmanshould that information be required. 87db35f309SDavid Greenman.Sh KERNEL CONFIGURATION 885fc1fd70SGarrett WollmanAny number of 895fc1fd70SGarrett Wollman.Tn CD-ROM 905fc1fd70SGarrett Wollmandevices may be attached to the system regardless of system 91db35f309SDavid Greenmanconfiguration as all resources are dynamically allocated. 92db35f309SDavid Greenman.Sh IOCTLS 93db35f309SDavid GreenmanThe following 94db35f309SDavid Greenman.Xr ioctl 2 955fc1fd70SGarrett Wollmancalls which apply to 965fc1fd70SGarrett Wollman.Tn SCSI 975fc1fd70SGarrett Wollman.Tn CD-ROM 985fc1fd70SGarrett Wollmandrives are defined 99db35f309SDavid Greenmanin the header files 100fe08efe6SRuslan Ermilov.In sys/cdio.h 101db35f309SDavid Greenmanand 102fe08efe6SRuslan Ermilov.In sys/disklabel.h . 1033136363fSRuslan Ermilov.Bl -tag -width CDIOCREADSUBCHANNEL 1045fc1fd70SGarrett Wollman.It Dv CDIOCPLAYTRACKS 1055fc1fd70SGarrett Wollman.Pq Li "struct ioc_play_track" 106f6c211aeSHiten PandyaStart audio playback given a track address and length. 107f6c211aeSHiten PandyaThe structure is defined as follows: 1085fc1fd70SGarrett Wollman.Bd -literal -offset indent 1095fc1fd70SGarrett Wollmanstruct ioc_play_track 1105fc1fd70SGarrett Wollman{ 1115fc1fd70SGarrett Wollman u_char start_track; 1125fc1fd70SGarrett Wollman u_char start_index; 1135fc1fd70SGarrett Wollman u_char end_track; 1145fc1fd70SGarrett Wollman u_char end_index; 1155fc1fd70SGarrett Wollman}; 1165fc1fd70SGarrett Wollman.Ed 1175fc1fd70SGarrett Wollman.It Dv CDIOCPLAYBLOCKS 1185fc1fd70SGarrett Wollman.Pq Li "struct ioc_play_blocks" 119f6c211aeSHiten PandyaStart audio playback given a block address and length. 120f6c211aeSHiten PandyaThe structure is defined as follows: 1215fc1fd70SGarrett Wollman.Bd -literal -offset indent 1225fc1fd70SGarrett Wollmanstruct ioc_play_blocks 1235fc1fd70SGarrett Wollman{ 1245fc1fd70SGarrett Wollman int blk; 1255fc1fd70SGarrett Wollman int len; 1265fc1fd70SGarrett Wollman}; 1275fc1fd70SGarrett Wollman.Ed 1285fc1fd70SGarrett Wollman.It Dv CDIOCPLAYMSF 1295fc1fd70SGarrett Wollman.Pq Li "struct ioc_play_msf" 1305fc1fd70SGarrett WollmanStart audio playback given a `minutes-seconds-frames' address and 131f6c211aeSHiten Pandyalength. 132f6c211aeSHiten PandyaThe structure is defined as follows: 1335fc1fd70SGarrett Wollman.Bd -literal -offset indent 1345fc1fd70SGarrett Wollmanstruct ioc_play_msf 1355fc1fd70SGarrett Wollman{ 1365fc1fd70SGarrett Wollman u_char start_m; 1375fc1fd70SGarrett Wollman u_char start_s; 1385fc1fd70SGarrett Wollman u_char start_f; 1395fc1fd70SGarrett Wollman u_char end_m; 1405fc1fd70SGarrett Wollman u_char end_s; 1415fc1fd70SGarrett Wollman u_char end_f; 1425fc1fd70SGarrett Wollman}; 1435fc1fd70SGarrett Wollman.Ed 1445fc1fd70SGarrett Wollman.It Dv CDIOCREADSUBCHANNEL 1455fc1fd70SGarrett Wollman.Pq Li "struct ioc_read_subchannel" 1465fc1fd70SGarrett WollmanRead information from the subchannel at the location specified by this 1475fc1fd70SGarrett Wollmanstructure: 1485fc1fd70SGarrett Wollman.Bd -literal -offset indent 1495fc1fd70SGarrett Wollmanstruct ioc_read_subchannel { 1505fc1fd70SGarrett Wollman u_char address_format; 1515fc1fd70SGarrett Wollman#define CD_LBA_FORMAT 1 1525fc1fd70SGarrett Wollman#define CD_MSF_FORMAT 2 1535fc1fd70SGarrett Wollman u_char data_format; 1545fc1fd70SGarrett Wollman#define CD_SUBQ_DATA 0 1555fc1fd70SGarrett Wollman#define CD_CURRENT_POSITION 1 1565fc1fd70SGarrett Wollman#define CD_MEDIA_CATALOG 2 1575fc1fd70SGarrett Wollman#define CD_TRACK_INFO 3 1585fc1fd70SGarrett Wollman u_char track; 1595fc1fd70SGarrett Wollman int data_len; 1605fc1fd70SGarrett Wollman struct cd_sub_channel_info *data; 1615fc1fd70SGarrett Wollman}; 1625fc1fd70SGarrett Wollman.Ed 1635fc1fd70SGarrett Wollman.It Dv CDIOREADTOCHEADER 1645fc1fd70SGarrett Wollman.Pq Li "struct ioc_toc_header" 1655fc1fd70SGarrett WollmanReturn summary information about the table of contents for the mounted 1665fc1fd70SGarrett Wollman.Tn CD-ROM . 1675fc1fd70SGarrett WollmanThe information is returned into the following structure: 1685fc1fd70SGarrett Wollman.Bd -literal -offset indent 1695fc1fd70SGarrett Wollmanstruct ioc_toc_header { 1705fc1fd70SGarrett Wollman u_short len; 1715fc1fd70SGarrett Wollman u_char starting_track; 1725fc1fd70SGarrett Wollman u_char ending_track; 1735fc1fd70SGarrett Wollman}; 1745fc1fd70SGarrett Wollman.Ed 1755fc1fd70SGarrett Wollman.It Dv CDIOREADTOCENTRYS 1765fc1fd70SGarrett Wollman.Pq Li "struct ioc_read_toc_entry" 177f6c211aeSHiten PandyaReturn information from the table of contents entries mentioned. 178f6c211aeSHiten Pandya.Pq Yes, this command name is misspelled. 179f6c211aeSHiten PandyaThe argument structure is defined as follows: 1805fc1fd70SGarrett Wollman.Bd -literal -offset indent 1815fc1fd70SGarrett Wollmanstruct ioc_read_toc_entry { 1825fc1fd70SGarrett Wollman u_char address_format; 1835fc1fd70SGarrett Wollman u_char starting_track; 1845fc1fd70SGarrett Wollman u_short data_len; 1855fc1fd70SGarrett Wollman struct cd_toc_entry *data; 1865fc1fd70SGarrett Wollman}; 1875fc1fd70SGarrett Wollman.Ed 1885fc1fd70SGarrett WollmanThe requested data is written into an area of size 1895fc1fd70SGarrett Wollman.Li data_len 1905fc1fd70SGarrett Wollmanand pointed to by 1915fc1fd70SGarrett Wollman.Li data . 1925fc1fd70SGarrett Wollman.It Dv CDIOCSETPATCH 1935fc1fd70SGarrett Wollman.Pq Li "struct ioc_patch" 194f6c211aeSHiten PandyaAttach various audio channels to various output channels. 195f6c211aeSHiten PandyaThe argument structure is defined thusly: 1965fc1fd70SGarrett Wollman.Bd -literal -offset indent 1975fc1fd70SGarrett Wollmanstruct ioc_patch { 1985fc1fd70SGarrett Wollman u_char patch[4]; 1995fc1fd70SGarrett Wollman /* one for each channel */ 2005fc1fd70SGarrett Wollman}; 2015fc1fd70SGarrett Wollman.Ed 2025fc1fd70SGarrett Wollman.It Dv CDIOCGETVOL 2035fc1fd70SGarrett Wollman.It Dv CDIOCSETVOL 2045fc1fd70SGarrett Wollman.Pq Li "struct ioc_vol" 205f6c211aeSHiten PandyaGet (set) information about the volume settings of the output channels. 206f6c211aeSHiten PandyaThe argument structure is as follows: 2075fc1fd70SGarrett Wollman.Bd -literal -offset indent 2085fc1fd70SGarrett Wollmanstruct ioc_vol 2095fc1fd70SGarrett Wollman{ 2105fc1fd70SGarrett Wollman u_char vol[4]; 2115fc1fd70SGarrett Wollman /* one for each channel */ 2125fc1fd70SGarrett Wollman}; 2135fc1fd70SGarrett Wollman.Ed 2145fc1fd70SGarrett Wollman.It Dv CDIOCSETMONO 2155fc1fd70SGarrett WollmanPatch all output channels to all source channels. 2165fc1fd70SGarrett Wollman.It Dv CDIOCSETSTEREO 217db35f309SDavid GreenmanPatch left source channel to the left output channel and the right 218db35f309SDavid Greenmansource channel to the right output channel. 2195fc1fd70SGarrett Wollman.It Dv CDIOCSETMUTE 220db35f309SDavid GreenmanMute output without changing the volume settings. 2215fc1fd70SGarrett Wollman.It Dv CDIOCSETLEFT 2225fc1fd70SGarrett Wollman.It Dv CDIOCSETRIGHT 2235fc1fd70SGarrett WollmanAttach both output channels to the left (right) source channel. 2245fc1fd70SGarrett Wollman.It Dv CDIOCSETDEBUG 2255fc1fd70SGarrett Wollman.It Dv CDIOCCLRDEBUG 2265fc1fd70SGarrett WollmanTurn on (off) debugging for the appropriate device. 2275fc1fd70SGarrett Wollman.It Dv CDIOCPAUSE 2285fc1fd70SGarrett Wollman.It Dv CDIOCRESUME 2295fc1fd70SGarrett WollmanPause (resume) audio play, without resetting the location of the read-head. 2305fc1fd70SGarrett Wollman.It Dv CDIOCRESET 231db35f309SDavid GreenmanReset the drive. 2325fc1fd70SGarrett Wollman.It Dv CDIOCSTART 2335fc1fd70SGarrett Wollman.It Dv CDIOCSTOP 2345fc1fd70SGarrett WollmanTell the drive to spin-up (-down) the 2355fc1fd70SGarrett Wollman.Tn CD-ROM . 2365fc1fd70SGarrett Wollman.It Dv CDIOCALLOW 2375fc1fd70SGarrett Wollman.It Dv CDIOCPREVENT 2385fc1fd70SGarrett WollmanTell the drive to allow (prevent) manual ejection of the 2395fc1fd70SGarrett Wollman.Tn CD-ROM 240b5e7e999SRuslan Ermilovdisc. 241b5e7e999SRuslan ErmilovNot all drives support this feature. 2425fc1fd70SGarrett Wollman.It Dv CDIOCEJECT 2435fc1fd70SGarrett WollmanEject the 2445fc1fd70SGarrett Wollman.Tn CD-ROM . 2455fc1fd70SGarrett Wollman.It Dv CDIOCCLOSE 246f6c211aeSHiten PandyaTell the drive to close its door and load the media. 247f6c211aeSHiten PandyaNot all drives support this feature. 248db35f309SDavid Greenman.El 249db35f309SDavid Greenman.Sh NOTES 2505fc1fd70SGarrett WollmanWhen a 2515fc1fd70SGarrett Wollman.Tn CD-ROM 2525fc1fd70SGarrett Wollmanis changed in a drive controlled by the 253db35f309SDavid Greenman.Nm 254db35f309SDavid Greenmandriver, then the act of changing the media will invalidate the 255f6c211aeSHiten Pandyadisklabel and information held within the kernel. 256f6c211aeSHiten PandyaTo stop corruption, 2575fc1fd70SGarrett Wollmanall accesses to the device will be discarded until there are no more 258f6c211aeSHiten Pandyaopen file descriptors referencing the device. 259f6c211aeSHiten PandyaDuring this period, all 260f6c211aeSHiten Pandyanew open attempts will be rejected. 261f6c211aeSHiten PandyaWhen no more open file descriptors 262db35f309SDavid Greenmanreference the device, the first next open will load a new set of 2635fc1fd70SGarrett Wollmanparameters (including disklabel) for the drive. 2645fc1fd70SGarrett Wollman.Pp 2655fc1fd70SGarrett WollmanThe audio code in the 266db35f309SDavid Greenman.Nm 2675fc1fd70SGarrett Wollmandriver only support 2685fc1fd70SGarrett Wollman.Tn SCSI-2 2696d249eeeSSheldon Hearnstandard audio commands. 270b5e7e999SRuslan ErmilovAs many 2715fc1fd70SGarrett Wollman.Tn CD-ROM 2725fc1fd70SGarrett Wollmanmanufacturers have not followed the standard, there are many 2735fc1fd70SGarrett Wollman.Tn CD-ROM 2746d249eeeSSheldon Hearndrives for which audio will not work. 2756d249eeeSSheldon HearnSome work is planned to support 2765fc1fd70SGarrett Wollmansome of the more common `broken' 2775fc1fd70SGarrett Wollman.Tn CD-ROM 2785fc1fd70SGarrett Wollmandrives; however, this is not yet under way. 279ba181a0eSWarner Losh.Sh SYSCTL VARIABLES 280ba181a0eSWarner LoshThe following variables are available as both 281ba181a0eSWarner Losh.Xr sysctl 8 282ba181a0eSWarner Loshvariables and 283ba181a0eSWarner Losh.Xr loader 8 284ba181a0eSWarner Loshtunables: 285ba181a0eSWarner Losh.Bl -tag -width 12 286ba181a0eSWarner Losh.It kern.cam.cd.retry_count 287ba181a0eSWarner Losh.Pp 288ba181a0eSWarner LoshThis variable determines how many times the 289ba181a0eSWarner Losh.Nm 290ba181a0eSWarner Loshdriver will retry a READ or WRITE command. 291ba181a0eSWarner LoshThis does not affect the number of retries used during probe time or for 292ba181a0eSWarner Loshthe 293ba181a0eSWarner Losh.Nm 294ba181a0eSWarner Loshdriver dump routine. 295ba181a0eSWarner LoshThis value currently defaults to 4. 296ba181a0eSWarner Losh.It kern.cam.cd.%d.minimum_cmd_size 297ba181a0eSWarner Losh.Pp 298ba181a0eSWarner LoshThe 299ba181a0eSWarner Losh.Nm 300ba181a0eSWarner Loshdriver attempts to automatically determine whether the drive it is talking 301ba181a0eSWarner Loshto supports 6 byte or 10 byte MODE SENSE/MODE SELECT operations. 302ba181a0eSWarner LoshMany 303ba181a0eSWarner Losh.Tn SCSI 304ba181a0eSWarner Loshdrives only support 6 byte commands, and 305ba181a0eSWarner Losh.Tn ATAPI 306ba181a0eSWarner Loshdrives only support 10 byte commands. 307ba181a0eSWarner LoshThe 308ba181a0eSWarner Losh.Nm 309ba181a0eSWarner Loshdriver first attempts to determine whether the protocol in use typically 310ba181a0eSWarner Loshsupports 6 byte commands by issuing a CAM Path Inquiry CCB. 311ba181a0eSWarner LoshIt will then default to 6 byte or 10 byte commands as appropriate. 312ba181a0eSWarner LoshAfter that, the 313ba181a0eSWarner Losh.Nm 314ba181a0eSWarner Loshdriver defaults to using 6 byte commands (assuming the protocol the drive 315ba181a0eSWarner Loshspeaks claims to support 6 byte commands), until one fails with a 316ba181a0eSWarner Losh.Tn SCSI 317ba181a0eSWarner LoshILLEGAL REQUEST error. 318ba181a0eSWarner LoshThen it tries the 10 byte version of the command to 319ba181a0eSWarner Loshsee if that works instead. 320ba181a0eSWarner LoshUsers can change the default via per-drive 321ba181a0eSWarner Loshsysctl variables and loader tunables. 322ba181a0eSWarner LoshWhere 323ba181a0eSWarner Losh.Dq %d 324ba181a0eSWarner Loshis the unit number of the drive in question. 325ba181a0eSWarner LoshValid minimum command sizes 326ba181a0eSWarner Loshare 6 and 10. 327ba181a0eSWarner LoshAny value above 6 will be rounded to 10, and any value below 328ba181a0eSWarner Losh6 will be rounded to 6. 329ba181a0eSWarner Losh.El 330db35f309SDavid Greenman.Sh FILES 33130934e7dSRuslan Ermilov.Bl -tag -width /dev/cd[0-9][a-h] -compact 332db35f309SDavid Greenman.It Pa /dev/cd[0-9][a-h] 3335fc1fd70SGarrett Wollmanraw mode 3345fc1fd70SGarrett Wollman.Tn CD-ROM 3355fc1fd70SGarrett Wollmandevices 336db35f309SDavid Greenman.El 337db35f309SDavid Greenman.Sh DIAGNOSTICS 338db35f309SDavid GreenmanNone. 339db35f309SDavid Greenman.Sh SEE ALSO 3402baf3a13SAlexander Motin.Xr cam 4 , 3412d8eb2c0SKenneth D. Merry.Xr da 4 , 342*70068a3eSMateusz Piotrowski.Xr cd9660 5 , 343f79219c3SJohn-Mark Gurney.Xr disklabel 8 , 344f79219c3SJohn-Mark Gurney.Xr cd 9 3459cbda590SRuslan Ermilov.Sh HISTORY 3469cbda590SRuslan ErmilovThis 3479cbda590SRuslan Ermilov.Nm 3489cbda590SRuslan Ermilovdriver is based upon the 3499cbda590SRuslan Ermilov.Nm 3509cbda590SRuslan Ermilovdriver written by Julian Elischer, which appeared in 3519cbda590SRuslan Ermilov.Bx 386 0.1 . 3529cbda590SRuslan ErmilovThe 3539cbda590SRuslan ErmilovCAM version of the 3549cbda590SRuslan Ermilov.Nm 3559cbda590SRuslan Ermilovdriver was written by Kenneth Merry and first appeared in 3569cbda590SRuslan Ermilov.Fx 3.0 . 3575fc1fd70SGarrett Wollman.Sh BUGS 3585fc1fd70SGarrett WollmanThe names of the structures used for the third argument to 3595fc1fd70SGarrett Wollman.Fn ioctl 3605fc1fd70SGarrett Wollmanwere poorly chosen, and a number of spelling errors have survived in 3615fc1fd70SGarrett Wollmanthe names of the 3625fc1fd70SGarrett Wollman.Fn ioctl 3635fc1fd70SGarrett Wollmancommands. 364