simple_inode_init_ts(9)
π 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:
simple_offset_init(9)simple_offset_add(9)simple_offset_remove(9)simple_offset_rename(9)simple_offset_rename_exchange(9)simple_offset_destroy(9)offset_dir_llseek(9)offset_readdir(9)simple_rename_timestamp(9)simple_setattr(9)simple_write_end(9)simple_read_from_buffer(9)simple_write_to_buffer(9)memory_read_from_buffer(9)generic_encode_ino32_fh(9)generic_fh_to_dentry(9)generic_fh_to_parent(9)simple_fsync_noflush(9)simple_fsync(9)generic_check_addressable(9)simple_get_link(9)generic_ci_d_compare(9)generic_ci_d_hash(9)generic_ci_match(9)generic_set_sb_d_ops(9)inode_maybe_inc_iversion(9)inode_query_iversion(9)path_from_stashed(9)simple_start_creating(9)
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
- 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