| 1 |
.\" Copyright 2002, Walter Harms <[email protected]> |
| 2 |
.\" Copyright 2002, Andries E. Brouwer <[email protected]> |
| 3 |
.\" Copyright, the authors of the Linux man-pages project |
| 4 |
.\" |
| 5 |
.\" SPDX-License-Identifier: GPL-1.0-or-later |
| 6 |
.\" |
| 7 |
.TH TIOCTTYGSTRUCT 2const 2026-02-08 "Linux man-pages 6.18" |
| 8 |
.SH NAME |
| 9 |
TIOCTTYGSTRUCT |
| 10 |
\- |
| 11 |
kernel debugging |
| 12 |
.SH LIBRARY |
| 13 |
Standard C library |
| 14 |
.RI ( libc ,\~ \-lc ) |
| 15 |
.SH SYNOPSIS |
| 16 |
.nf |
| 17 |
.B #include <sys/ioctl.h> |
| 18 |
.P |
| 19 |
.BI "int ioctl(int " fd ", TIOCTTYGSTRUCT, struct tty_struct *" argp ); |
| 20 |
.P |
| 21 |
.B #include <linux/tty.h> |
| 22 |
.P |
| 23 |
.B struct tty_struct; |
| 24 |
.fi |
| 25 |
.SH DESCRIPTION |
| 26 |
Get the |
| 27 |
.I tty_struct |
| 28 |
corresponding to |
| 29 |
.IR fd . |
| 30 |
.SH RETURN VALUE |
| 31 |
On success, |
| 32 |
0 is returned. |
| 33 |
On error, |
| 34 |
\-1 is returned, and |
| 35 |
.I errno |
| 36 |
is set to indicate the error. |
| 37 |
.SH HISTORY |
| 38 |
This operation was removed in Linux 2.5.67. |
| 39 |
.\" commit b3506a09d15dc5aee6d4bb88d759b157016e1864 |
| 40 |
.\" Author: Andries E. Brouwer <[email protected]> |
| 41 |
.\" Date: Tue Apr 1 04:42:46 2003 -0800 |
| 42 |
.\" |
| 43 |
.\" [PATCH] kill TIOCTTYGSTRUCT |
| 44 |
.\" |
| 45 |
.\" Only used for (dubious) debugging purposes, and exposes |
| 46 |
.\" internal kernel state. |
| 47 |
.\" |
| 48 |
.SH SEE ALSO |
| 49 |
.BR ioctl (2), |
| 50 |
.BR ioctl_tty (2) |