update_mctime(9)
π 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:
release_new_page_budget(9)release_existing_page_budget(9)allocate_budget(9)cancel_budget(9)populate_page(9)ubifs_do_bulk_read(9)ubifs_bulk_read(9)do_attr_changes(9)do_truncation(9)do_setattr(9)mctime_update_needed(9)
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
- 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