n_tty_inherit_ops(9)
π n_tty_inherit_ops(9) π
okay so bestie, welcome to the Kernel API Manual β yes, the manual manual, the one your girl actually reads. this page is about n_tty_inherit_ops, and it's a short one, so consider this a lil snack break between the big scary pages. π
β¨ NAME β¨
n_tty_inherit_ops β inherit N_TTY methods
like, inheritance but make it line discipline. π
β¨ SYNOPSIS β¨
void n_tty_inherit_ops (struct tty_ldisc_ops *ops );
that's the whole thing. one call. no return value. no drama (well, a little drama, it's a void). π
β¨ ARGUMENTS β¨
opsβ astruct tty_ldisc_opsβ and this is where to save the N_TTY methods. it's the lil container you hand over, and it comes back with the N_TTY methods tucked inside. main character energy fr fr π«Ά
β¨ DESCRIPTION β¨
so basically: this function enables a 'subclass' line discipline to 'inherit' N_TTY methods.
that's it. that's the whole description. a line discipline can be like "i'm my own thing, but alsoβ¦ i would like to have what N_TTY is having" and this is the function that makes that happen. iconic behavior, no notes. π
ngl this is one of those pages where the DESCRIPTION is one sentence and you're like "wait, that's it?" β yes bestie, that's it, and the manpage said it perfectly so we're not adding anything. periodt. β¨
π SEE ALSO π
okay this is the part where the page goes feral and lists the entire N_TTY cinematic universe. grab a beverage. π§
the kernel file:
./drivers/tty/n_tty.c
and the whole friend group:
n_tty_kick_worker(9)n_tty_write_wakeup(9)put_tty_queue(9)reset_buffer_flags(9)n_tty_flush_buffer(9)is_utf8_continuation(9)is_continuation(9)do_output_char(9)process_output(9)process_output_block(9)__process_echoes(9)add_echo_byte(9)echo_move_back_col(9)echo_set_canon_col(9)echo_erase_tab(9)echo_char_raw(9)echo_char(9)finish_erasing(9)eraser(9)isig(9)n_tty_receive_break(9)n_tty_receive_overrun(9)n_tty_receive_parity_error(9)n_tty_receive_char_flow_ctrl(9)n_tty_receive_char(9)n_tty_receive_buf_common(9)n_tty_set_termios(9)n_tty_close(9)n_tty_open(9)copy_from_read_buf(9)canon_copy_from_read_buf(9)job_control(9)n_tty_read(9)n_tty_write(9)n_tty_poll(9)
that's the roster. the whole lineup. lowkey obsessed with how thorough this is. π₯
and that's the page!! short, sweet, and honestly kind of a vibe. π
source: ./drivers/tty β version date: October 2026 β page: n_tty_inherit_ops(9) π¦ go forth and inherit some methods, bestie. mwah. π
β¨
π¦ 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