devpts_pty_new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devpts_pty_new β€” the kernel API manual, bestie edition πŸ’–

okay so real talk, this is devpts_pty_new(9) from the Kernel API Manual, and it's literally the girl who makes you a brand new inode in /dev/pts/. she's giving backend main character energy and honestly? iconic. ✨


🌸 NAME 🌸

devpts_pty_new β€” create a new inode in /dev/pts/ πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

struct dentry * devpts_pty_new (struct pts_fs_info *fsi , int index ,
void *priv );

like, that's the whole vibe right there. one call, three args, one dentry back. no cap. πŸ’…

✨ ARGUMENTS ✨

  • fsi β€” the filesystem info for this instance, aka which devpts we're talking about. every instance is its own girlie, don't mix them up 🫢
  • index β€” this one gets used as the name of the node. so it's not just a number, it's literally her name. periodt.
  • priv β€” the thing that's given back by devpts_get_priv. yes, that's the whole description. she comes as she is, no notes 😌

πŸ’œ DESCRIPTION πŸ’œ

so what do you get back? the dentry for the created inode. that's the prize, that's the bag, that's the whole point of the function. 🎁

but listen β€” and this is the important part, bestie β€” when you're done with it you remove it from /dev/pts/ with devpts_pty_kill. do not just leave her there. clean up your room. the kernel is not your mom. 😭

ngl, forgetting the devpts_pty_kill step is giving "left the group chat with no explanation". don't be that girl. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


and that's the page, bestie!! 🧚 source: ./fs/devpts, dated October 2026, devpts_pty_new(9) β€” go forth and make inodes responsibly πŸŒˆπŸ‘‘πŸ’–

πŸ“¦ where this page comes from