/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef __ASM_GENERIC_IOCTLS_H
#define __ASM_GENERIC_IOCTLS_H
#include <linux/ioctl.h>
/*
* These are the most common definitions for tty ioctl numbers .
* Most of them do not use the recommended _ IOC ( ) , but there is
* probably some source code out there hardcoding the number ,
* so we might as well use them for all new platforms .
*
* The architectures that use different values here typically
* try to be compatible with some Unix variants for the same
* architecture .
*/
/* 0x54 is just a magic number to make these relatively unique ('T') */
#define TCGETS 0 x5401
#define TCSETS 0 x5402
#define TCSETSW 0 x5403
#define TCSETSF 0 x5404
#define TCGETA 0 x5405
#define TCSETA 0 x5406
#define TCSETAW 0 x5407
#define TCSETAF 0 x5408
#define TCSBRK 0 x5409
#define TCXONC 0 x540A
#define TCFLSH 0 x540B
#define TIOCEXCL 0 x540C
#define TIOCNXCL 0 x540D
#define TIOCSCTTY 0 x540E
#define TIOCGPGRP 0 x540F
#define TIOCSPGRP 0 x5410
#define TIOCOUTQ 0 x5411
#define TIOCSTI 0 x5412
#define TIOCGWINSZ 0 x5413
#define TIOCSWINSZ 0 x5414
#define TIOCMGET 0 x5415
#define TIOCMBIS 0 x5416
#define TIOCMBIC 0 x5417
#define TIOCMSET 0 x5418
#define TIOCGSOFTCAR 0 x5419
#define TIOCSSOFTCAR 0 x541A
#define FIONREAD 0 x541B
#define TIOCINQ FIONREAD
#define TIOCLINUX 0 x541C
#define TIOCCONS 0 x541D
#define TIOCGSERIAL 0 x541E
#define TIOCSSERIAL 0 x541F
#define TIOCPKT 0 x5420
#define FIONBIO 0 x5421
#define TIOCNOTTY 0 x5422
#define TIOCSETD 0 x5423
#define TIOCGETD 0 x5424
#define TCSBRKP 0 x5425 /* Needed for POSIX tcsendbreak() */
#define TIOCSBRK 0 x5427 /* BSD compatibility */
#define TIOCCBRK 0 x5428 /* BSD compatibility */
#define TIOCGSID 0 x5429 /* Return the session ID of FD */
#define TCGETS2 _IOR('T' , 0 x2A, struct termios2)
#define TCSETS2 _IOW('T' , 0 x2B, struct termios2)
#define TCSETSW2 _IOW('T' , 0 x2C, struct termios2)
#define TCSETSF2 _IOW('T' , 0 x2D, struct termios2)
#define TIOCGRS485 0 x542E
#ifndef TIOCSRS485
#define TIOCSRS485 0 x542F
#endif
#define TIOCGPTN _IOR('T' , 0 x30, unsigned int ) /* Get Pty Number (of pty-mux device) */
#define TIOCSPTLCK _IOW('T' , 0 x31, int ) /* Lock/unlock Pty */
#define TIOCGDEV _IOR('T' , 0 x32, unsigned int ) /* Get primary device node of /dev/console */
#define TCGETX 0 x5432 /* SYS5 TCGETX compatibility */
#define TCSETX 0 x5433
#define TCSETXF 0 x5434
#define TCSETXW 0 x5435
#define TIOCSIG _IOW('T' , 0 x36, int ) /* pty: generate signal */
#define TIOCVHANGUP 0 x5437
#define TIOCGPKT _IOR('T' , 0 x38, int ) /* Get packet mode state */
#define TIOCGPTLCK _IOR('T' , 0 x39, int ) /* Get Pty lock state */
#define TIOCGEXCL _IOR('T' , 0 x40, int ) /* Get exclusive mode state */
#define TIOCGPTPEER _IO('T' , 0 x41) /* Safely open the slave */
#define TIOCGISO7816 _IOR('T' , 0 x42, struct serial_iso7816)
#define TIOCSISO7816 _IOWR('T' , 0 x43, struct serial_iso7816)
#define FIONCLEX 0 x5450
#define FIOCLEX 0 x5451
#define FIOASYNC 0 x5452
#define TIOCSERCONFIG 0 x5453
#define TIOCSERGWILD 0 x5454
#define TIOCSERSWILD 0 x5455
#define TIOCGLCKTRMIOS 0 x5456
#define TIOCSLCKTRMIOS 0 x5457
#define TIOCSERGSTRUCT 0 x5458 /* For debugging only */
#define TIOCSERGETLSR 0 x5459 /* Get line status register */
#define TIOCSERGETMULTI 0 x545A /* Get multiport config */
#define TIOCSERSETMULTI 0 x545B /* Set multiport config */
#define TIOCMIWAIT 0 x545C /* wait for a change on serial input line(s) */
#define TIOCGICOUNT 0 x545D /* read serial port inline interrupt counts */
/*
* Some arches already define FIOQSIZE due to a historical
* conflict with a Hayes modem - specific ioctl value .
*/
#ifndef FIOQSIZE
# define FIOQSIZE 0 x5460
#endif
/* Used for packet mode */
#define TIOCPKT_DATA 0
#define TIOCPKT_FLUSHREAD 1
#define TIOCPKT_FLUSHWRITE 2
#define TIOCPKT_STOP 4
#define TIOCPKT_START 8
#define TIOCPKT_NOSTOP 16
#define TIOCPKT_DOSTOP 32
#define TIOCPKT_IOCTL 64
#define TIOCSER_TEMT 0 x01 /* Transmitter physically empty */
#endif /* __ASM_GENERIC_IOCTLS_H */
Messung V0.5 in Prozent C=79 H=100 G=90
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-10-02)
¤
*© Formatika GbR, Deutschland