summaryrefslogtreecommitdiffstats
path: root/zfs/ZfsArcStats.h
diff options
context:
space:
mode:
authorRoss Williams <ross@ross-williams.net>2019-07-07 23:27:00 +0000
committerRoss Williams <ross@ross-williams.net>2019-07-07 23:10:54 -0400
commita88d2e313df7f5f2b781d5b14ffe0e7710018c10 (patch)
tree623e2c81c9335e37653c870f64190b2ed22cc365 /zfs/ZfsArcStats.h
parentfc8e9a2d3e25e35c0f9903baa345b1744b12b6cb (diff)
Refactor common OpenZFS sysctl access
Darwin and FreeBSD export zfs kstats through the same APIs, so moving functions into a common file.
Diffstat (limited to 'zfs/ZfsArcStats.h')
-rw-r--r--zfs/ZfsArcStats.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/zfs/ZfsArcStats.h b/zfs/ZfsArcStats.h
new file mode 100644
index 00000000..3697af23
--- /dev/null
+++ b/zfs/ZfsArcStats.h
@@ -0,0 +1,23 @@
+/* Do not edit this file. It was automatically generated. */
+
+#ifndef HEADER_ZfsArcStats
+#define HEADER_ZfsArcStats
+/*
+htop - ZfsArcStats.h
+(C) 2014 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+typedef struct ZfsArcStats_ {
+ int enabled;
+ unsigned long long int max;
+ unsigned long long int size;
+ unsigned long long int MFU;
+ unsigned long long int MRU;
+ unsigned long long int anon;
+ unsigned long long int header;
+ unsigned long long int other;
+} ZfsArcStats;
+
+#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy