tiocspgrp(9)
β¨ 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 thettypassed 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:
__tty_check_change(9)__proc_set_tty(9)tty_signal_session_leader(9)disassociate_ctty(9)tiocsctty(9)tty_get_pgrp(9)tiocgpgrp(9)tiocgsid(9)
mwah π β this lil page is tiocspgrp(9), from ./drivers/tty, dated October 2026. bye bestie! π«Άπ
π¦ 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