tiocgpgrp(9)
π tiocgpgrp(9) π
okay so welcome to the Kernel API Manual, bestie! this page is about tiocgpgrp, and it's literally here to get a process group. no cap. π«Ά
β¨ NAME β¨
tiocgpgrp β get process group
πΈ SYNOPSIS πΈ
int tiocgpgrp (struct tty_struct *tty , struct tty_struct *real_tty ,
pid_t __user *p );
π ARGUMENTS π
ttyβ the tty passed by user. yes bestie, user brought it.real_ttyβ the tty side of the tty passed by the user if a pty else the tty.pβ returned pid.
π DESCRIPTION π
so this one obtains the process group of the tty. if there is no process group, it returns an error β not a vibe, but that's the deal. π
Locking: none. Reference to current->signal->tty is safe. slay, no locking drama. β¨
π¦ SEE ALSO π¦
the kernel file is ./drivers/tty/tty_jobctrl.c, and here's the whole friend group:
__tty_check_change(9)__proc_set_tty(9)tty_signal_session_leader(9)disassociate_ctty(9)tiocsctty(9)tty_get_pgrp(9)tiocspgrp(9)tiocgsid(9)
xoxo bestie π β from ./drivers/tty, October 2026, all about tiocgpgrp(9). periodt. π
π¦ 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