current_time(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– current_time(9) πŸ’–

okay so bestie, we're in the Kernel API Manual for current_time(9), and it's literally all about returning FS time (possibly fine-grained). no cap, let's go 🫢

✨ NAME ✨

current_time β€” Return FS time (possibly fine-grained)

πŸ› οΈ SYNOPSIS πŸ› οΈ

struct timespec64 current_time (struct inode *inode );

πŸŽ€ ARGUMENTS πŸŽ€

  • inode β€” inode. that's the whole argument, bestie πŸ’…

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: current_time returns the current time truncated to the time granularity supported by the fs, as suitable for a ctime/mtime change. ✨

If the ctime is flagged as having been QUERIED, it gets a fine-grained timestamp, but it does not update the floor. no cap πŸ‘‘

For a multigrain inode, this is effectively an estimate of the timestamp that a file would receive. An actual update must go through inode_set_ctime_current. periodt. πŸ’–

πŸ‘€ SEE ALSO πŸ‘€

the page is literally giving you the whole inode friend group, so here's every single shout-out β€” no skips, bestie:


that's the whole vibe β€” source/version: ./fs; date: October 2026; page: current_time(9). mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from