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

Function zfetch_init

freebsd/contrib/openzfs/module/zfs/dmu_zfetch.c:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86kstat_t *zfetch_ksp;
87
88void
89zfetch_init(void)
90{
91 zfetch_ksp = kstat_create("zfs", 0, "zfetchstats", "misc",
92 KSTAT_TYPE_NAMED, sizeof (zfetch_stats) / sizeof (kstat_named_t),
93 KSTAT_FLAG_VIRTUAL);
94
95 if (zfetch_ksp != NULL) {
96 zfetch_ksp->ks_data = &zfetch_stats;
97 kstat_install(zfetch_ksp);
98 }
99}
100
101void
102zfetch_fini(void)

Callers 1

dmu_initFunction · 0.85

Calls 2

kstat_createFunction · 0.85
kstat_installFunction · 0.50

Tested by

no test coverage detected