FreeBSDMachine.h 965 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. unsigned long long int memWire;
  32. unsigned long long int memActive;
  33. ZfsArcStats zfs;
  34. CPUData* cpus;
  35. unsigned long* cp_time_o;
  36. unsigned long* cp_time_n;
  37. unsigned long* cp_times_o;
  38. unsigned long* cp_times_n;
  39. } FreeBSDMachine;
  40. #endif