Manual Pages for Linux CentOS command on man ioctl_list
MyWebUniversity

Manual Pages for Linux CentOS command on man ioctl_list

IOCTLLIST(2) Linux Programmer's Manual IOCTLLIST(2)

NAME

ioctllist - list of ioctl calls in Linux/i386 kernel DESCRIPTION This is Ioctl List 1.3.27, a list of ioctl calls in Linux/i386 kernel 1.3.27. It contains 421 ioctls from . For each ioctl, its numerical value, its name, and its argument type are given. An argument type of const struct foo * means the argument is input to the kernel. struct foo * means the kernel outputs the argument. If the kernel uses the argument for both input and output, this is marked

with // I-O. Some ioctls take more arguments or return more values than a single structure. These are marked // MORE and documented further in a sepa‐ rate section. This list is very incomplete. ioctl structure

Ioctl command values are 32-bit constants. In principle these con‐ stants are completely arbitrary, but people have tried to build some structure into them.

The old Linux situation was that of mostly 16-bit constants, where the last byte is a serial number, and the preceding byte(s) give a type indicating the driver. Sometimes the major number was used: 0x03 for the HDIO* ioctls, 0x06 for the LP* ioctls. And sometimes one or more ASCII letters were used. For example, TCGETS has value 0x00005401, with 0x54 = 'T' indicating the terminal driver, and CYGETTIMEOUT has value 0x00435906, with 0x43 0x59 = 'C' 'Y' indicating the cyclades driver. Later (0.98p5) some more information was built into the number. One has 2 direction bits (00: none, 01: write, 10: read, 11: read/write) followed by 14 size bits (giving the size of the argument), followed by

an 8-bit type (collecting the ioctls in groups for a common purpose or

a common driver), and an 8-bit serial number. The macros describing this structure live in and are IO(type,nr) and {IOR,IOW,IOWR}(type,nr,size). They use sizeof(size) so that size is a misnomer here: this third argument is a data type. Note that the size bits are very unreliable: in lots of cases they are wrong, either because of buggy macros using sizeof(sizeof(struct)), or because of legacy values. Thus, it seems that the new structure only gave disadvantages: it does not help in checking, but it causes varying values for the various architectures. RETURN VALUE

Decent ioctls return 0 on success and -1 on error, while any output value is stored via the argument. However, quite a few ioctls in fact return an output value. This is not yet indicated below. // Main table.

// 0x00008901 FIOSETOWN const int * 0x00008902 SIOCSPGRP const int * 0x00008903 FIOGETOWN int * 0x00008904 SIOCGPGRP int * 0x00008905 SIOCATMAR int * 0x00008906 SIOCGSTAMP timeval *

// 0x00005401 TCGETS struct termios * 0x00005402 TCSETS const struct termios * 0x00005403 TCSETSW const struct termios * 0x00005404 TCSETSF const struct termios * 0x00005405 TCGETA struct termio * 0x00005406 TCSETA const struct termio * 0x00005407 TCSETAW const struct termio * 0x00005408 TCSETAF const struct termio * 0x00005409 TCSBRK int 0x0000540A TCXONC int 0x0000540B TCFLSH int 0x0000540C TIOCEXCL void 0x0000540D TIOCNXCL void 0x0000540E TIOCSCTTY int 0x0000540F TIOCGPGRP pidt * 0x00005410 TIOCSPGRP const pidt * 0x00005411 TIOCOUTQ int * 0x00005412 TIOCSTI const char * 0x00005413 TIOCGWINSZ struct winsize * 0x00005414 TIOCSWINSZ const struct winsize * 0x00005415 TIOCMGET int * 0x00005416 TIOCMBIS const int * 0x00005417 TIOCMBIC const int * 0x00005418 TIOCMSET const int * 0x00005419 TIOCGSOFTCAR int * 0x0000541A TIOCSSOFTCAR const int * 0x0000541B FIONREAD int * 0x0000541B TIOCINQ int * 0x0000541C TIOCLINUX const char * // MORE 0x0000541D TIOCCONS void 0x0000541E TIOCGSERIAL struct serialstruct * 0x0000541F TIOCSSERIAL const struct serialstruct * 0x00005420 TIOCPKT const int * 0x00005421 FIONBIO const int * 0x00005422 TIOCNOTTY void 0x00005423 TIOCSETD const int * 0x00005424 TIOCGETD int * 0x00005425 TCSBRKP int 0x00005426 TIOCTTYGSTRUCT struct ttystruct * 0x00005450 FIONCLEX void 0x00005451 FIOCLEX void 0x00005452 FIOASYNC const int * 0x00005453 TIOCSERCONFIG void 0x00005454 TIOCSERGWILD int * 0x00005455 TIOCSERSWILD const int * 0x00005456 TIOCGLCKTRMIOS struct termios * 0x00005457 TIOCSLCKTRMIOS const struct termios * 0x00005458 TIOCSERGSTRUCT struct asyncstruct * 0x00005459 TIOCSERGETLSR int * 0x0000545A TIOCSERGETMULTI struct serialmultiportstruct * 0x0000545B TIOCSERSETMULTI const struct serialmultiportstruct * // 0x000089E0 SIOCAX25GETUID const struct sockaddrax25 * 0x000089E1 SIOCAX25ADDUID const struct sockaddrax25 * 0x000089E2 SIOCAX25DELUID const struct sockaddrax25 * 0x000089E3 SIOCAX25NOUID const int * 0x000089E4 SIOCAX25DIGCTL const int *

0x000089E5 SIOCAX25GETPARMS struct ax25parmsstruct * // I-O 0x000089E6 SIOCAX25SETPARMS const struct ax25parmsstruct * // 0x00007314 STLBINTR void 0x00007315 STLBSTART void 0x00007316 STLBSTOP void 0x00007317 STLBRESET void // 0x00005301 CDROMPAUSE void 0x00005302 CDROMRESUME void 0x00005303 CDROMPLAYMSF const struct cdrommsf * 0x00005304 CDROMPLAYTRKIND const struct cdromti * 0x00005305 CDROMREADTOCHDR struct cdromtochdr *

0x00005306 CDROMREADTOCENTRY struct cdromtocentry * // I-O 0x00005307 CDROMSTOP void 0x00005308 CDROMSTART void 0x00005309 CDROMEJECT void 0x0000530A CDROMVOLCTRL const struct cdromvolctrl *

0x0000530B CDROMSUBCHNL struct cdromsubchnl * // I-O 0x0000530C CDROMREADMODE2 const struct cdrommsf * // MORE 0x0000530D CDROMREADMODE1 const struct cdrommsf * // MORE 0x0000530E CDROMREADAUDIO const struct cdromreadaudio * // MORE 0x0000530F CDROMEJECTSW int

0x00005310 CDROMMULTISESSION struct cdrommultisession * // I-O 0x00005311 CDROMGETUPC struct { char [8]; } * 0x00005312 CDROMRESET void 0x00005313 CDROMVOLREAD struct cdromvolctrl * 0x00005314 CDROMREADRAW const struct cdrommsf * // MORE 0x00005315 CDROMREADCOOKED const struct cdrommsf * // MORE 0x00005316 CDROMSEEK const struct cdrommsf * // 0x00002000 CM206CTLGETSTAT int 0x00002001 CM206CTLGETLASTSTAT int // 0x00435901 CYGETMON struct cycladesmonitor * 0x00435902 CYGETTHRESH int * 0x00435903 CYSETTHRESH int 0x00435904 CYGETDEFTHRESH int * 0x00435905 CYSETDEFTHRESH int 0x00435906 CYGETTIMEOUT int * 0x00435907 CYSETTIMEOUT int 0x00435908 CYGETDEFTIMEOUT int * 0x00435909 CYSETDEFTIMEOUT int // 0x80046601 EXT2IOCGETFLAGS int * 0x40046602 EXT2IOCSETFLAGS const int * 0x80047601 EXT2IOCGETVERSION int * 0x40047602 EXT2IOCSETVERSION const int * // 0x00000000 FDCLRPRM void 0x00000001 FDSETPRM const struct floppystruct * 0x00000002 FDDEFPRM const struct floppystruct * 0x00000003 FDGETPRM struct floppystruct * 0x00000004 FDMSGON void 0x00000005 FDMSGOFF void 0x00000006 FDFMTBEG void 0x00000007 FDFMTTRK const struct formatdescr * 0x00000008 FDFMTEND void 0x0000000A FDSETEMSGTRESH int 0x0000000B FDFLUSH void 0x0000000C FDSETMAXERRS const struct floppymaxerrors * 0x0000000E FDGETMAXERRS struct floppymaxerrors * 0x00000010 FDGETDRVTYP struct { char [16]; } * 0x00000014 FDSETDRVPRM const struct floppydriveparams * 0x00000015 FDGETDRVPRM struct floppydriveparams * 0x00000016 FDGETDRVSTAT struct floppydrivestruct * 0x00000017 FDPOLLDRVSTAT struct floppydrivestruct * 0x00000018 FDRESET int 0x00000019 FDGETFDCSTAT struct floppyfdcstate * 0x0000001B FDWERRORCLR void 0x0000001C FDWERRORGET struct floppywriteerrors *

0x0000001E FDRAWCMD struct floppyrawcmd * // MORE // I-O 0x00000028 FDTWADDLE void // 0x0000125D BLKROSET const int * 0x0000125E BLKROGET int * 0x0000125F BLKRRPART void 0x00001260 BLKGETSIZE unsigned long * 0x00001261 BLKFLSBUF void 0x00001262 BLKRASET int 0x00001263 BLKRAGET int *

0x00000001 FIBMAP int * // I-O 0x00000002 FIGETBSZ int * // 0x00000301 HDIOGETGEO struct hdgeometry * 0x00000302 HDIOGETUNMASKINTR int * 0x00000304 HDIOGETMULTCOUNT int * 0x00000307 HDIOGETIDENTITY struct hddriveid * 0x00000308 HDIOGETKEEPSETTINGS int * 0x00000309 HDIOGETCHIPSET int * 0x0000030A HDIOGETNOWERR int * 0x0000030B HDIOGETDMA int *

0x0000031F HDIODRIVECMD int * // I-O 0x00000321 HDIOSETMULTCOUNT int 0x00000322 HDIOSETUNMASKINTR int 0x00000323 HDIOSETKEEPSETTINGS int 0x00000324 HDIOSETCHIPSET int 0x00000325 HDIOSETNOWERR int 0x00000326 HDIOSETDMA int //

0x000089F0 EQLENSLAVE struct ifreq * // MORE // I-O

0x000089F1 EQLEMANCIPATE struct ifreq * // MORE // I-O

0x000089F2 EQLGETSLAVECFG struct ifreq * // MORE // I-O

0x000089F3 EQLSETSLAVECFG struct ifreq * // MORE // I-O

0x000089F4 EQLGETMASTRCFG struct ifreq * // MORE // I-O

0x000089F5 EQLSETMASTRCFG struct ifreq * // MORE // I-O //

0x000089F0 SIOCDEVPLIP struct ifreq * // I-O // 0x00005490 PPPIOCGFLAGS int * 0x00005491 PPPIOCSFLAGS const int * 0x00005492 PPPIOCGASYNCMAP int * 0x00005493 PPPIOCSASYNCMAP const int * 0x00005494 PPPIOCGUNIT int * 0x00005495 PPPIOCSINPSIG const int * 0x00005497 PPPIOCSDEBUG const int * 0x00005498 PPPIOCGDEBUG int * 0x00005499 PPPIOCGSTAT struct pppstats * 0x0000549A PPPIOCGTIME struct pppddinfo * 0x0000549B PPPIOCGXASYNCMAP struct { int [8]; } * 0x0000549C PPPIOCSXASYNCMAP const struct { int [8]; } * 0x0000549D PPPIOCSMRU const int * 0x0000549E PPPIOCRASYNCMAP const int * 0x0000549F PPPIOCSMAXCID const int * // 0x000089E0 SIOCAIPXITFCRT const char * 0x000089E1 SIOCAIPXPRISLT const char * 0x000089E2 SIOCIPXCFGDATA struct ipxconfigdata * // 0x00004B60 GIOFONT struct { char [8192]; } * 0x00004B61 PIOFONT const struct { char [8192]; } *

0x00004B6B GIOFONTX struct consolefontdesc * // MORE // I-O 0x00004B6C PIOFONTX const struct consolefontdesc * //MORE 0x00004B70 GIOCMAP struct { char [48]; } * 0x00004B71 PIOCMAP const struct { char [48]; } 0x00004B2F KIOCSOUND int 0x00004B30 KDMKTONE int 0x00004B31 KDGETLED char * 0x00004B32 KDSETLED int 0x00004B33 KDGKBTYPE char * 0x00004B34 KDADDIO int // MORE 0x00004B35 KDDELIO int // MORE 0x00004B36 KDENABIO void // MORE 0x00004B37 KDDISABIO void // MORE 0x00004B3A KDSETMODE int 0x00004B3B KDGETMODE int * 0x00004B3C KDMAPDISP void // MORE 0x00004B3D KDUNMAPDISP void // MORE 0x00004B40 GIOSCRNMAP struct { char [ETABSZ]; } * 0x00004B41 PIOSCRNMAP const struct { char [ETABSZ]; } * 0x00004B69 GIOUNISCRNMAP struct { short [ETABSZ]; } * 0x00004B6A PIOUNISCRNMAP const struct { short [ETABSZ]; } *

0x00004B66 GIOUNIMAP struct unimapdesc * // MORE // I-O 0x00004B67 PIOUNIMAP const struct unimapdesc * // MORE 0x00004B68 PIOUNIMAPCLR const struct unimapinit * 0x00004B44 KDGKBMODE int * 0x00004B45 KDSKBMODE int 0x00004B62 KDGKBMETA int * 0x00004B63 KDSKBMETA int 0x00004B64 KDGKBLED int * 0x00004B65 KDSKBLED int

0x00004B46 KDGKBENT struct kbentry * // I-O 0x00004B47 KDSKBENT const struct kbentry *

0x00004B48 KDGKBSENT struct kbsentry * // I-O 0x00004B49 KDSKBSENT const struct kbsentry * 0x00004B4A KDGKBDIACR struct kbdiacrs * 0x00004B4B KDSKBDIACR const struct kbdiacrs *

0x00004B4C KDGETKEYCODE struct kbkeycode * // I-O 0x00004B4D KDSETKEYCODE const struct kbkeycode * 0x00004B4E KDSIGACCEPT int // 0x00000601 LPCHAR int 0x00000602 LPTIME int 0x00000604 LPABORT int 0x00000605 LPSETIRQ int 0x00000606 LPGETIRQ int * 0x00000608 LPWAIT int 0x00000609 LPCAREFUL int 0x0000060A LPABORTOPEN int 0x0000060B LPGETSTATUS int * 0x0000060C LPRESET void 0x0000060D LPGETSTATS struct lpstats * //

0x000089E0 SIOCGETVIFCNT struct siocvifreq * // I-O

0x000089E1 SIOCGETSGCNT struct siocsgreq * // I-O // 0x40086D01 MTIOCTOP const struct mtop * 0x801C6D02 MTIOCGET struct mtget * 0x80046D03 MTIOCPOS struct mtpos * 0x80206D04 MTIOCGETCONFIG struct mtconfiginfo * 0x40206D05 MTIOCSETCONFIG const struct mtconfiginfo * //

0x000089E0 SIOCNRGETPARMS struct nrparmsstruct * // I-O 0x000089E1 SIOCNRSETPARMS const struct nrparmsstruct * 0x000089E2 SIOCNRDECOBS void 0x000089E3 SIOCNRRTCTL const int * // 0x00009000 DDIOCSDBG const int * 0x00005382 CDROMAUDIOBUFSIZ int // 0x00005470 TIOCSCCINI void 0x00005471 TIOCCHANINI const struct sccmodem *

0x00005472 TIOCGKISS struct ioctlcommand * // I-O 0x00005473 TIOCSKISS const struct ioctlcommand * 0x00005474 TIOCSCCSTAT struct sccstat * // 0x00005382 SCSIIOCTLGETIDLUN struct { int [2]; } * 0x00005383 SCSIIOCTLTAGGEDENABLE void 0x00005384 SCSIIOCTLTAGGEDDISABLE void 0x00005385 SCSIIOCTLPROBEHOST const int * // MORE // 0x80027501 SMBIOCGETMOUNTUID uidt * // 0x0000890B SIOCADDRT const struct rtentry * // MORE 0x0000890C SIOCDELRT const struct rtentry * // MORE 0x00008910 SIOCGIFNAME char [] 0x00008911 SIOCSIFLINK void

0x00008912 SIOCGIFCONF struct ifconf * // MORE // I-O

0x00008913 SIOCGIFFLAGS struct ifreq * // I-O 0x00008914 SIOCSIFFLAGS const struct ifreq *

0x00008915 SIOCGIFADDR struct ifreq * // I-O 0x00008916 SIOCSIFADDR const struct ifreq *

0x00008917 SIOCGIFDSTADDR struct ifreq * // I-O 0x00008918 SIOCSIFDSTADDR const struct ifreq *

0x00008919 SIOCGIFBRDADDR struct ifreq * // I-O 0x0000891A SIOCSIFBRDADDR const struct ifreq *

0x0000891B SIOCGIFNETMASK struct ifreq * // I-O 0x0000891C SIOCSIFNETMASK const struct ifreq *

0x0000891D SIOCGIFMETRIC struct ifreq * // I-O 0x0000891E SIOCSIFMETRIC const struct ifreq *

0x0000891F SIOCGIFMEM struct ifreq * // I-O 0x00008920 SIOCSIFMEM const struct ifreq *

0x00008921 SIOCGIFMTU struct ifreq * // I-O 0x00008922 SIOCSIFMTU const struct ifreq *

0x00008923 OLDSIOCGIFHWADDR struct ifreq * // I-O 0x00008924 SIOCSIFHWADDR const struct ifreq * // MORE 0x00008925 SIOCGIFENCAP int * 0x00008926 SIOCSIFENCAP const int *

0x00008927 SIOCGIFHWADDR struct ifreq * // I-O 0x00008929 SIOCGIFSLAVE void 0x00008930 SIOCSIFSLAVE void 0x00008931 SIOCADDMULTI const struct ifreq * 0x00008932 SIOCDELMULTI const struct ifreq * 0x00008940 SIOCADDRTOLD void 0x00008941 SIOCDELRTOLD void 0x00008950 SIOCDARP const struct arpreq *

0x00008951 SIOCGARP struct arpreq * // I-O 0x00008952 SIOCSARP const struct arpreq * 0x00008960 SIOCDRARP const struct arpreq *

0x00008961 SIOCGRARP struct arpreq * // I-O 0x00008962 SIOCSRARP const struct arpreq *

0x00008970 SIOCGIFMAP struct ifreq * // I-O 0x00008971 SIOCSIFMAP const struct ifreq * // 0x00005100 SNDCTLSEQRESET void 0x00005101 SNDCTLSEQSYNC void

0xC08C5102 SNDCTLSYNTHINFO struct synthinfo * // I-O

0xC0045103 SNDCTLSEQCTRLRATE int * // I-O 0x80045104 SNDCTLSEQGETOUTCOUNT int * 0x80045105 SNDCTLSEQGETINCOUNT int * 0x40045106 SNDCTLSEQPERCMODE void 0x40285107 SNDCTLFMLOADINSTR const struct sbiinstrument * 0x40045108 SNDCTLSEQTESTMIDI const int * 0x40045109 SNDCTLSEQRESETSAMPLES const int * 0x8004510A SNDCTLSEQNRSYNTHS int * 0x8004510B SNDCTLSEQNRMIDIS int *

0xC074510C SNDCTLMIDIINFO struct midiinfo * // I-O 0x4004510D SNDCTLSEQTHRESHOLD const int *

0xC004510E SNDCTLSYNTHMEMAVL int * // I-O 0x4004510F SNDCTLFM4OPENABLE const int *

0xCFB85110 SNDCTLPMGRACCESS struct patmgrinfo * // I-O 0x00005111 SNDCTLSEQPANIC void 0x40085112 SNDCTLSEQOUTOFBAND const struct seqeventrec *

0xC0045401 SNDCTLTMRTIMEBASE int * // I-O 0x00005402 SNDCTLTMRSTART void 0x00005403 SNDCTLTMRSTOP void 0x00005404 SNDCTLTMRCONTINUE void

0xC0045405 SNDCTLTMRTEMPO int * // I-O

0xC0045406 SNDCTLTMRSOURCE int * // I-O 0x40045407 SNDCTLTMRMETRONOME const int *

0x40045408 SNDCTLTMRSELECT int * // I-O

0xCFB85001 SNDCTLPMGRIFACE struct patmgrinfo * // I-O

0xC0046D00 SNDCTLMIDIPRETIME int * // I-O 0xC0046D01 SNDCTLMIDIMPUMODE const int *

0xC0216D02 SNDCTLMIDIMPUCMD struct mpucommandrec * // I-O 0x00005000 SNDCTLDSPRESET void 0x00005001 SNDCTLDSPSYNC void

0xC0045002 SNDCTLDSPSPEED int * // I-O

0xC0045003 SNDCTLDSPSTEREO int * // I-O

0xC0045004 SNDCTLDSPGETBLKSIZE int * // I-O

0xC0045006 SOUNDPCMWRITECHANNELS int * // I-O

0xC0045007 SOUNDPCMWRITEFILTER int * // I-O 0x00005008 SNDCTLDSPPOST void

0xC0045009 SNDCTLDSPSUBDIVIDE int * // I-O

0xC004500A SNDCTLDSPSETFRAGMENT int * // I-O 0x8004500B SNDCTLDSPGETFMTS int *

0xC0045005 SNDCTLDSPSETFMT int * // I-O 0x800C500C SNDCTLDSPGETOSPACE struct audiobufinfo * 0x800C500D SNDCTLDSPGETISPACE struct audiobufinfo * 0x0000500E SNDCTLDSPNONBLOCK void 0x80045002 SOUNDPCMREADRATE int * 0x80045006 SOUNDPCMREADCHANNELS int * 0x80045005 SOUNDPCMREADBITS int * 0x80045007 SOUNDPCMREADFILTER int * 0x00004300 SNDCTLCOPRRESET void 0xCFB04301 SNDCTLCOPRLOAD const struct coprbuffer *

0xC0144302 SNDCTLCOPRRDATA struct coprdebugbuf * // I-O

0xC0144303 SNDCTLCOPRRCODE struct coprdebugbuf * // I-O 0x40144304 SNDCTLCOPRWDATA const struct coprdebugbuf * 0x40144305 SNDCTLCOPRWCODE const struct coprdebugbuf *

0xC0144306 SNDCTLCOPRRUN struct coprdebugbuf * // I-O

0xC0144307 SNDCTLCOPRHALT struct coprdebugbuf * // I-O 0x4FA44308 SNDCTLCOPRSENDMSG const struct coprmsg * 0x8FA44309 SNDCTLCOPRRCVMSG struct coprmsg * 0x80044D00 SOUNDMIXERREADVOLUME int * 0x80044D01 SOUNDMIXERREADBASS int * 0x80044D02 SOUNDMIXERREADTREBLE int * 0x80044D03 SOUNDMIXERREADSYNTH int * 0x80044D04 SOUNDMIXERREADPCM int * 0x80044D05 SOUNDMIXERREADSPEAKER int * 0x80044D06 SOUNDMIXERREADLINE int * 0x80044D07 SOUNDMIXERREADMIC int * 0x80044D08 SOUNDMIXERREADCD int * 0x80044D09 SOUNDMIXERREADIMIX int * 0x80044D0A SOUNDMIXERREADALTPCM int * 0x80044D0B SOUNDMIXERREADRECLEV int * 0x80044D0C SOUNDMIXERREADIGAIN int * 0x80044D0D SOUNDMIXERREADOGAIN int * 0x80044D0E SOUNDMIXERREADLINE1 int * 0x80044D0F SOUNDMIXERREADLINE2 int * 0x80044D10 SOUNDMIXERREADLINE3 int * 0x80044D1C SOUNDMIXERREADMUTE int * 0x80044D1D SOUNDMIXERREADENHANCE int * 0x80044D1E SOUNDMIXERREADLOUD int * 0x80044DFF SOUNDMIXERREADRECSRC int * 0x80044DFE SOUNDMIXERREADDEVMASK int * 0x80044DFD SOUNDMIXERREADRECMASK int * 0x80044DFB SOUNDMIXERREADSTEREODEVS int * 0x80044DFC SOUNDMIXERREADCAPS int *

0xC0044D00 SOUNDMIXERWRITEVOLUME int * // I-O

0xC0044D01 SOUNDMIXERWRITEBASS int * // I-O

0xC0044D02 SOUNDMIXERWRITETREBLE int * // I-O

0xC0044D03 SOUNDMIXERWRITESYNTH int * // I-O

0xC0044D04 SOUNDMIXERWRITEPCM int * // I-O

0xC0044D05 SOUNDMIXERWRITESPEAKER int * // I-O

0xC0044D06 SOUNDMIXERWRITELINE int * // I-O

0xC0044D07 SOUNDMIXERWRITEMIC int * // I-O

0xC0044D08 SOUNDMIXERWRITECD int * // I-O

0xC0044D09 SOUNDMIXERWRITEIMIX int * // I-O

0xC0044D0A SOUNDMIXERWRITEALTPCM int * // I-O

0xC0044D0B SOUNDMIXERWRITERECLEV int * // I-O

0xC0044D0C SOUNDMIXERWRITEIGAIN int * // I-O

0xC0044D0D SOUNDMIXERWRITEOGAIN int * // I-O

0xC0044D0E SOUNDMIXERWRITELINE1 int * // I-O

0xC0044D0F SOUNDMIXERWRITELINE2 int * // I-O

0xC0044D10 SOUNDMIXERWRITELINE3 int * // I-O

0xC0044D1C SOUNDMIXERWRITEMUTE int * // I-O

0xC0044D1D SOUNDMIXERWRITEENHANCE int * // I-O

0xC0044D1E SOUNDMIXERWRITELOUD int * // I-O

0xC0044DFF SOUNDMIXERWRITERECSRC int * // I-O //

0x000004D2 UMSDOSREADDIRDOS struct umsdosioctl * // I-O 0x000004D3 UMSDOSUNLINKDOS const struct umsdosioctl * 0x000004D4 UMSDOSRMDIRDOS const struct umsdosioctl *

0x000004D5 UMSDOSSTATDOS struct umsdosioctl * // I-O 0x000004D6 UMSDOSCREATEMD const struct umsdosioctl * 0x000004D7 UMSDOSUNLINKEMD const struct umsdosioctl *

0x000004D8 UMSDOSREADDIREMD struct umsdosioctl * // I-O 0x000004D9 UMSDOSGETVERSION struct umsdosioctl * 0x000004DA UMSDOSINITEMD void 0x000004DB UMSDOSDOSSETUP const struct umsdosioctl * 0x000004DC UMSDOSRENAMEDOS const struct umsdosioctl * // 0x00005600 VTOPENQRY int * 0x00005601 VTGETMODE struct vtmode * 0x00005602 VTSETMODE const struct vtmode * 0x00005603 VTGETSTATE struct vtstat * 0x00005604 VTSENDSIG void 0x00005605 VTRELDISP int 0x00005606 VTACTIVATE int 0x00005607 VTWAITACTIVE int 0x00005608 VTDISALLOCATE int 0x00005609 VTRESIZE const struct vtsizes * 0x0000560A VTRESIZEX const struct vtconsize * // More arguments. Some ioctl's take a pointer to a structure which contains additional pointers. These are documented here in alphabeti‐ cal order. CDROMREADAUDIO takes an input pointer const struct cdromreadaudio *. The buf field points to an output buffer of length nframes * CDFRAME‐ SIZERAW. CDROMREADCOOKED, CDROMREADMODE1, CDROMREADMODE2, and CDROMREADRAW take an input pointer const struct cdrommsf *. They use the same pointer as an output pointer to char []. The length varies by request. For CDROMREADMODE1, most drivers use CDFRAMESIZE, but the Optics Storage driver uses OPTBLOCKSIZE instead (both have the numerical value 2048). CDROMREADCOOKED char [CDFRAMESIZE] CDROMREADMODE1 char [CDFRAMESIZE or OPTBLOCKSIZE] CDROMREADMODE2 char [CDFRAMESIZERAW0] CDROMREADRAW char [CDFRAMESIZERAW] EQLENSLAVE, EQLEMANCIPATE, EQLGETSLAVECFG, EQLSETSLAVECFG, EQLGET‐ MASTERCFG, and EQLSETMASTERCFG take a struct ifreq *. The ifrdata field is a pointer to another structure as follows: EQLENSLAVE const struct slavingrequest * EQLEMANCIPATE const struct slavingrequest *

EQLGETSLAVECFG struct slaveconfig * // I-O EQLSETSLAVECFG const struct slaveconfig * EQLGETMASTERCFG struct masterconfig * EQLSETMASTERCFG const struct masterconfig * FDRAWCMD takes a struct floppy rawcmd *. If flags & FDRAWWRITE is nonzero, then data points to an input buffer of length length. If flags & FDRAWREAD is nonzero, then data points to an output buffer of length length. GIOFONTX and PIOFONTX take a struct consolefontdesc * or a const struct consolefontdesc *, respectively. chardata points to a buffer of char [charcount]. This is an output buffer for GIOFONTX and an input buffer for PIOFONTX. GIOUNIMAP and PIOUNIMAP take a struct unimapdesc * or a const struct unimapdesc *, respectively. entries points to a buffer of struct uni‐ pair [entryct]. This is an output buffer for GIOUNIMAP and an input buffer for PIOUNIMAP. KDADDIO, KDDELIO, KDDISABIO, and KDENABIO enable or disable access to I/O ports. They are essentially alternate interfaces to 'ioperm'. KDMAPDISP and KDUNMAPDISP enable or disable memory mappings or I/O port access. They are not implemented in the kernel. SCSIIOCTLPROBEHOST takes an input pointer const int *, which is a length. It uses the same pointer as an output pointer to a char [] buffer of this length. SIOCADDRT and SIOCDELRT take an input pointer whose type depends on the protocol: Most protocols const struct rtentry * AX.25 const struct ax25route * NET/ROM const struct nrroutestruct * SIOCGIFCONF takes a struct ifconf *. The ifcbuf field points to a buffer of length ifclen bytes, into which the kernel writes a list of type struct ifreq []. SIOCSIFHWADDR takes an input pointer whose type depends on the proto‐ col: Most protocols const struct ifreq * AX.25 const char [AX25ADDRLEN] TIOCLINUX takes a const char *. It uses this to distinguish several independent subcases. In the table below, N + foo means foo after an

N-byte pad. struct selection is implicitly defined in driv‐ ers/char/selection.c

TIOCLINUX-2 1 + const struct selection *

TIOCLINUX-3 void

TIOCLINUX-4 void

TIOCLINUX-5 4 + const struct { long [8]; } *

TIOCLINUX-6 char *

TIOCLINUX-7 char *

TIOCLINUX-10 1 + const char * // Duplicate ioctls This list does not include ioctls in the range SIOCDEVPRIVATE and SIOCPROTOPRIVATE. 0x00000001 FDSETPRM FIBMAP 0x00000002 FDDEFPRM FIGETBSZ 0x00005382 CDROMAUDIOBUFSIZ SCSIIOCTLGETIDLUN 0x00005402 SNDCTLTMRSTART TCSETS 0x00005403 SNDCTLTMRSTOP TCSETSW 0x00005404 SNDCTLTMRCONTINUE TCSETSF SEE ALSO ioctl(2) COLOPHON

This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can

be found at http://www.kernel.org/doc/man-pages/.

Linux 2007-12-29 IOCTLLIST(2)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™