VFS_TIMESTAMP(9)

πŸ’– VFS_TIMESTAMP πŸ’–

okay bestie, so this is a page from the Kernel Developer's Manual (section 9, we're in the big leagues now πŸ‘‘) and it's literally just about getting the current time. iconic behaviour honestly.


✨ NAME ✨

vfs_timestamp β€” generate current timestamp

like, it makes a timestamp. that's the whole job. and it ate. πŸ’…


🌸 SYNOPSIS 🌸

#include <sys/param.h>
#include <sys/vnode.h>

void
vfs_timestamp(struct timespec *tsp);

πŸ¦‹ DESCRIPTION πŸ¦‹

so vfs_timestamp() fills in tsp with the current time. that's it, that's the function, no cap. 🫢

the precision though? that depends on the value of the vfs.timestamp_precision sysctl variable, and it's giving choose-your-own-adventure:

  • 0 β€” seconds only, bestie. nanoseconds get zeroed out. gone. bye. πŸ’€
  • 1 β€” seconds and nanoseconds, accurate within 1/HZ.
  • 2 β€” seconds and nanoseconds, truncated to microseconds.
  • β‰₯3 β€” seconds and nanoseconds, maximum precision. go big or go home. πŸ”₯

πŸ’œ AUTHORS πŸ’œ

this manual page was written by Chad David <davidc@acns.ab.ca>. thank you Chad, king behaviour, we appreciate you πŸŽ€


and that's the whole vibe fr fr β€” Debian, November 21, 2001, mwah, love that for us βœ¨πŸ§šπŸ’–

πŸ“¦ where this page comes from