devpts_pty_new(9)
π 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 bydevpts_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 π₯
- Kernel file
./fs/devpts/inode.c devpts_get_priv(9)devpts_pty_kill(9)
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
- 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