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

Function cache_out_ts

freebsd/kern/vfs_cache.c:421–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421static void
422cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp)
423{
424 struct namecache_ts *ncp_ts;
425
426 KASSERT((ncp->nc_flag & NCF_TS) != 0 ||
427 (tsp == NULL && ticksp == NULL),
428 ("No NCF_TS"));
429
430 if (tsp == NULL)
431 return;
432
433 ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc);
434 *tsp = ncp_ts->nc_time;
435 *ticksp = ncp_ts->nc_ticks;
436}
437
438#ifdef DEBUG_CACHE
439static int __read_mostly doingcache = 1; /* 1 => enable the cache */

Callers 3

cache_lookup_dotdotFunction · 0.85
cache_lookup_fallbackFunction · 0.85
cache_lookupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected