tiocgsid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, this is tiocgsid(9) from the Kernel API Manual β€” the function whose whole entire job is get session id. no cap, that’s the vibe. πŸ’…

🌸 SYNOPSIS 🌸

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

πŸŽ€ ARGUMENTS πŸŽ€

  • tty β€” the tty passed by user. yes, the one the user handed over.
  • real_tty β€” the tty side of the tty passed by the user if it’s a pty; otherwise it’s just the tty. πŸ¦‹
  • p β€” pointer to returned session id. like, the spot where the returned session id goes.

πŸ¦‹ DESCRIPTION πŸ¦‹

This one obtains the session id of the tty. If there is no session, it returns an error β€” periodt. That’s the whole plot, bestie; no extra lore needed. πŸ’–

πŸ’– SEE ALSO πŸ’–

Kernel file: ./drivers/tty/tty_jobctrl.c. the related icon crew is:


mwah πŸ’– this page’s source/version tag is ./drivers/tty, dated October 2026, and yes it’s still tiocgsid(9) β€” periodt. 🫢

πŸ“¦ where this page comes from