RowField.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef HEADER_RowField
  2. #define HEADER_RowField
  3. /*
  4. htop - RowField.h
  5. (C) 2023 htop dev team
  6. Released under the GNU GPLv2+, see the COPYING file
  7. in the source distribution for its full text.
  8. */
  9. #include "ProcessField.h" // platform-specific fields reserved for processes
  10. typedef enum ReservedFields_ {
  11. NULL_FIELD = 0,
  12. PID = 1,
  13. COMM = 2,
  14. STATE = 3,
  15. PPID = 4,
  16. PGRP = 5,
  17. SESSION = 6,
  18. TTY = 7,
  19. TPGID = 8,
  20. MINFLT = 10,
  21. MAJFLT = 12,
  22. PRIORITY = 18,
  23. NICE = 19,
  24. STARTTIME = 21,
  25. PROCESSOR = 38,
  26. M_VIRT = 39,
  27. M_RESIDENT = 40,
  28. ST_UID = 46,
  29. PERCENT_CPU = 47,
  30. PERCENT_MEM = 48,
  31. USER = 49,
  32. TIME = 50,
  33. NLWP = 51,
  34. TGID = 52,
  35. PERCENT_NORM_CPU = 53,
  36. ELAPSED = 54,
  37. SCHEDULERPOLICY = 55,
  38. PROC_COMM = 124,
  39. PROC_EXE = 125,
  40. CWD = 126,
  41. /* Platform specific fields, defined in ${platform}/ProcessField.h */
  42. PLATFORM_PROCESS_FIELDS
  43. /* Do not add new fields after this entry (dynamic entries follow) */
  44. LAST_RESERVED_FIELD
  45. } ReservedFields;
  46. /* Follow ReservedField entries with dynamic fields defined at runtime */
  47. #define ROW_DYNAMIC_FIELDS LAST_RESERVED_FIELD
  48. typedef int32_t RowField;
  49. #endif