tty_change_softcar(9)
π tty_change_softcar(9) β the carrier-change glow-up
okay so real talk, this is a page straight out of the Kernel API Manual, section 9, and it's called tty_change_softcar β yes bestie, that's the whole name, iykyk π It's a lil helper for the carrier change ioctl, and honestly? It's giving tiny-but-mighty. β¨
πΈ NAME πΈ
tty_change_softcar β the carrier change ioctl helper. that's it, that's the icon. π
π¦ SYNOPSIS π¦
int tty_change_softcar (struct tty_struct *tty , bool enable );
copy it exactly bestie, spacing and all, don't @ me π
π ARGUMENTS π
ttyβ the tty you're updating. the main character of this whole function, fr.enableβ turnsCLOCALon or off. on. off. the binary slay. π
β¨ DESCRIPTION β¨
so what it actually does: it performs a change to the CLOCAL state, then calls into the driver layer to make that change visible. like, it doesn't just think about the change, it makes sure everyone can see it. visibility is key, queens. π«Ά
Locking: tty_struct->termios_rwsem β that's the lock situation, and no, we're not skipping it. respect the rwsem. π
π₯ RETURN π₯
0on success β the good ending, we love to see it π- an error otherwise β the not-so-good ending, still valid tho π
π SEE ALSO π
the kernel file lives at ./drivers/tty/tty_ioctl.c, and here's the whole friend group that comes with it β no gatekeeping, we share the whole list:
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_termios(9)set_sgttyb(9)tty_mode_ioctl(9)
and that's the page bestie, go forth and flip that CLOCAL bit responsibly π§π
this lil cutie is brought to you by ./drivers/tty, dated October 2026, courtesy of the Kernel API Manual. 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