MCPcopy Create free account
hub / github.com/F-Stack/f-stack / init_va_filerev

Function init_va_filerev

freebsd/kern/vfs_subr.c:6115–6122  ·  view source on GitHub ↗

* Function to initialize a va_filerev field sensibly. * XXX: Wouldn't a random number make a lot more sense ?? */

Source from the content-addressed store, hash-verified

6113 * XXX: Wouldn't a random number make a lot more sense ??
6114 */
6115u_quad_t
6116init_va_filerev(void)
6117{
6118 struct bintime bt;
6119
6120 getbinuptime(&bt);
6121 return (((u_quad_t)bt.sec << 32LL) | (bt.frac >> 32LL));
6122}
6123
6124static int filt_vfsread(struct knote *kn, long hint);
6125static int filt_vfswrite(struct knote *kn, long hint);

Callers

nothing calls this directly

Calls 1

getbinuptimeFunction · 0.85

Tested by

no test coverage detected