VFS_TIMESTAMP(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, this is the VFS_TIMESTAMP(9) page from the Kernel Developer's Manual, and it does exactly one iconic thing: vfs_timestamp generates the current timestamp. ✨

🌸 SYNOPSIS 🌸

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

void
vfs_timestamp(struct timespec *tsp);

πŸ¦‹ DESCRIPTION πŸ¦‹

so vfs_timestamp() is the little function that fills in tsp with the current time. that's it, that's the whole job, and it eats. πŸ’…

the precision you get is based on the value of the vfs.timestamp_precision sysctl variable, and the levels are giving:

  • 0 β€” seconds only; nanoseconds are zeroed.
  • 1 β€” seconds and nanoseconds, accurate within 1/HZ.
  • 2 β€” seconds and nanoseconds, truncated to microseconds.
  • β‰₯3 β€” seconds and nanoseconds, maximum precision. πŸ”₯

πŸŽ€ AUTHORS πŸŽ€

this manual page was written by Chad David <davidc@acns.ab.ca>. iconic of him, honestly. 🫢


that's the whole page, bestie: Debian source/version, dated November 21, 2001, and the manual page is VFS_TIMESTAMP(9). no cap, you're now timestamp-literate. πŸ’–βœ¨

πŸ“¦ where this page comes from