tiocgpgrp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


xoxo bestie πŸ’– β€” from ./drivers/tty, October 2026, all about tiocgpgrp(9). periodt. πŸŽ€

πŸ“¦ where this page comes from