FreeBSDMachine.h 892 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef HEADER_FreeBSDMachine
  2. #define HEADER_FreeBSDMachine
  3. /*
  4. htop - FreeBSDMachine.h
  5. (C) 2014 Hisham H. Muhammad
  6. Released under the GNU GPLv2+, see the COPYING file
  7. in the source distribution for its full text.
  8. */
  9. #include <kvm.h>
  10. #include <stdbool.h>
  11. #include <sys/types.h>
  12. #include "Hashtable.h"
  13. #include "Machine.h"
  14. #include "UsersTable.h"
  15. #include "zfs/ZfsArcStats.h"
  16. typedef struct CPUData_ {
  17. double userPercent;
  18. double nicePercent;
  19. double systemPercent;
  20. double irqPercent;
  21. double systemAllPercent;
  22. double frequency;
  23. double temperature;
  24. } CPUData;
  25. typedef struct FreeBSDMachine_ {
  26. Machine super;
  27. kvm_t* kd;
  28. int pageSize;
  29. int pageSizeKb;
  30. int kernelFScale;
  31. ZfsArcStats zfs;
  32. CPUData* cpus;
  33. unsigned long* cp_time_o;
  34. unsigned long* cp_time_n;
  35. unsigned long* cp_times_o;
  36. unsigned long* cp_times_n;
  37. } FreeBSDMachine;
  38. #endif