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

Function kread_counter

tools/netstat/main.c:855–863  ·  view source on GitHub ↗

* Read single counter(9). */

Source from the content-addressed store, hash-verified

853 * Read single counter(9).
854 */
855uint64_t
856kread_counter(u_long addr)
857{
858
859 if (kvmd_init() < 0)
860 return (-1);
861
862 return (kvm_counter_u64_fetch(kvmd, addr));
863}
864
865/*
866 * Read an array of N counters in kernel memory into array of N uint64_t's.

Callers

nothing calls this directly

Calls 1

kvmd_initFunction · 0.85

Tested by

no test coverage detected