tty_ldisc_init(9)
π NAME β tty_ldisc_init(9) π
okay bestie, welcome to tty_ldisc_init(9) from the Kernel API Manual π«Ά. This page is short and iconic: itβs the ldisc setup for new tty β literally setting up the line discipline objects for a brand-new tty. No cap. β¨
π SYNOPSIS π
int tty_ldisc_init (struct tty_struct *tty );
πΈ ARGUMENTS πΈ
ttyβ the tty thatβs being allocated β¨. Thatβs the whole argument, bestie; itβs astruct tty_struct *.
π¦ DESCRIPTION π¦
When youβve got a freshly allocated tty, this call sets up its line discipline objects π . Thatβs the vibe: new tty, ldisc objects handled.
β οΈ caveat, and itβs important: the tty structure is not completely set up when this call is made. So do not assume itβs fully cooked yet π β itβs still mid-glow-up.
π SEE ALSO π
Kernel file: ./drivers/tty/tty_ldisc.c π
tty_register_ldisc(9)tty_unregister_ldisc(9)tty_ldisc_get(9)tty_ldisc_put(9)tty_ldisc_ref_wait(9)tty_ldisc_ref(9)tty_ldisc_deref(9)tty_ldisc_flush(9)tty_set_termios_ldisc(9)tty_ldisc_open(9)tty_ldisc_close(9)tty_ldisc_failto(9)tty_ldisc_restore(9)tty_set_ldisc(9)tty_ldisc_kill(9)tty_reset_termios(9)tty_ldisc_reinit(9)tty_ldisc_hangup(9)tty_ldisc_setup(9)tty_ldisc_release(9)tty_ldisc_deinit(9)
laterz, bestie π β this pageβs source/version is ./drivers/tty, and itβs dated October 2026. slay. π¦
π¦ 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