update_mctime(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… update_mctime(9) β€” like, the kernel API manual bestie πŸŽ€

okay so real talk, this is a page from the Kernel API Manual and it's about one (1) little function that keeps your inode's timestamps looking fresh. not me being obsessed with file metadata but here we are ✨


🌸 NAME 🌸

update_mctime β€” updates the mtime and the ctime of an inode. both of them. at once. slay πŸ’…


✨ SYNOPSIS ✨

int update_mctime (struct inode *inode );

that's it, that's the whole signature, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • inode β€” the inode you wanna update, bestie. that's the one. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so here's the vibe: this function updates the mtime and ctime of the inode β€” but only if it's not equivalent to the current time. like, if it's already giving current-time energy, it just doesn't bother. lowkey respectful of its own time ngl 😭✨


πŸ”₯ RETURN πŸ”₯

  • 0 β€” success!! we ate, we left no crumbs πŸŽ€
  • a negative error code β€” failure, and it's giving πŸ’€ (still negative tho, so you know something went sideways)

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file ./fs/ubifs/file.c and its whole friend group, fr fr:

like, the whole ubifs squad is in the group chat, iykyk 🌈🫢


and that's the page!! this lil icon lives in ./fs/ubifs, dated October 2026, and yes it's still update_mctime(9) β€” periodt πŸ’œπŸ§šβ­

πŸ“¦ where this page comes from