simple_inode_init_ts(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… simple_inode_init_ts β€” Kernel API Manual ✨

okay so bestie, you found a manual page called simple_inode_init_ts and it lives in the Kernel API Manual section (that's section 9, iykyk β€” kernel developer vibes only 🧚). Let me tell you everything about it, no cap.


🌸 NAME 🌸

simple_inode_init_ts β€” literally the function that initializes the timestamps for a brand-new inode πŸŽ€


✨ SYNOPSIS ✨

struct timespec64 simple_inode_init_ts (struct inode *inode );

That's it. That's the whole shape of it. She takes one struct inode * and hands you back a struct timespec64. Iconic.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • inode β€” the inode you want to be initialized. That's the one. She's the main character here πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜•: when a new inode gets created, most filesystems set the timestamps to the current time. Every single one of them, doing the same little timestamp dance πŸ™ˆ. So the kernel devs were like "bestie, why are we all writing this ourselves" and added a helper to do exactly that. That's this function. Periodt. πŸ’…

ngl it's a small one, but the way it saves every filesystem from copy-pasting the same lines? obsessed. 🫢

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/libfs.c β€” and honestly the whole friend group is here, so let me introduce you:

like, the whole libfs.c squad showed up to the group chat and they all ate πŸ’€πŸ”₯


and that's the page, bestie! 🌈 this little gem comes from the ./fs corner of the tree, from October 2026, and it's filed under simple_inode_init_ts(9). go forth and init those timestamps, you absolute icon πŸ’œβ­

πŸ“¦ where this page comes from