set_termios(9)
set_termios(9) π
okay bestie, welcome to the Kernel API Manual page for set_termios β this is the tty termios helper, and weβre gonna get you comfy with it β¨
πΈ NAME πΈ
set_termios β set termios values for a tty
β¨ SYNOPSIS β¨
int set_termios (struct tty_struct *tty , void __user *arg , int opt );
π ARGUMENTS π
hereβs the little cast of arguments, no cap:
ttyβ terminal deviceargβ user dataoptβ option information
π¦ DESCRIPTION π¦
so set_termios is a helper function: it prepares the termios data and runs the necessary other functions before using tty_set_termios to do the actual changes π
Locking note π«Ά: the called functions take the tty_struct->ldisc_sem and tty_struct->termios_rwsem locks.
π RETURN π
0 on success, an error otherwise π
π₯ SEE ALSO π₯
kernel file: ./drivers/tty/tty_ioctl.c β and hereβs the whole squad:
tty_chars_in_buffer(9)tty_write_room(9)tty_driver_flush_buffer(9)tty_unthrottle(9)tty_throttle_safe(9)tty_unthrottle_safe(9)tty_wait_until_sent(9)tty_termios_copy_hw(9)tty_termios_hw_change(9)tty_get_char_size(9)tty_get_frame_size(9)tty_set_termios(9)set_sgttyb(9)tty_change_softcar(9)tty_mode_ioctl(9)
okay thatβs the page, bestie β source/version: ./drivers/tty, dated October 2026 β bye and go set those termios values π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms