LinuxProcessTable.h 665 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef HEADER_LinuxProcessTable
  2. #define HEADER_LinuxProcessTable
  3. /*
  4. htop - LinuxProcessTable.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 <stdbool.h>
  10. #include "ProcessTable.h"
  11. typedef struct TtyDriver_ {
  12. char* path;
  13. unsigned int major;
  14. unsigned int minorFrom;
  15. unsigned int minorTo;
  16. } TtyDriver;
  17. typedef struct LinuxProcessTable_ {
  18. ProcessTable super;
  19. TtyDriver* ttyDrivers;
  20. bool haveSmapsRollup;
  21. bool haveAutogroup;
  22. #ifdef HAVE_DELAYACCT
  23. struct nl_sock* netlink_socket;
  24. int netlink_family;
  25. #endif
  26. } LinuxProcessTable;
  27. #endif