tiocspgrp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

tiocspgrp β€” attempt to set process group. That’s the whole vibe: it attempts to set the process group, bestie πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

int tiocspgrp (struct tty_struct *tty , struct tty_struct *real_tty , pid_t __user * p );

🌸 ARGUMENTS 🌸

  • tty β€” the tty that got passed by user. User brought it, we’re looking at it πŸ‘€
  • real_tty β€” the tty side device that matches the tty passed by user. Matching set, slay ✨
  • p β€” pid pointer. Literally just a pointer to a pid 🫢

πŸ’… DESCRIPTION πŸ’…

okay so the whole plot: this sets the process group of the tty to the session passed. Only permitted where the tty session is our session β€” like, main character session only, periodt πŸ‘‘

Locking: RCU, ctrl lock. Those are the locking girlies, no cap πŸ”’

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/tty/tty_jobctrl.c β€” go read it, bestie:


mwah πŸ’‹ β€” this lil page is tiocspgrp(9), from ./drivers/tty, dated October 2026. bye bestie! πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from