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 within1/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
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms