meminfo.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * netlink/idiag/meminfo.h Inetdiag Netlink Memory Info
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation version 2.1
  7. * of the License.
  8. *
  9. * Copyright (c) 2013 Sassano Systems LLC <joe@sassanosystems.com>
  10. */
  11. #ifndef NETLINK_IDIAGNL_MEMINFO_H_
  12. #define NETLINK_IDIAGNL_MEMINFO_H_
  13. #include <netlink/netlink.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif /* __cplusplus */
  17. extern struct nl_object_ops idiagnl_meminfo_obj_ops;
  18. extern struct idiagnl_meminfo *idiagnl_meminfo_alloc(void);
  19. extern void idiagnl_meminfo_get(struct idiagnl_meminfo *);
  20. extern void idiagnl_meminfo_put(struct idiagnl_meminfo *);
  21. extern uint32_t idiagnl_meminfo_get_rmem(const struct idiagnl_meminfo *);
  22. extern uint32_t idiagnl_meminfo_get_wmem(const struct idiagnl_meminfo *);
  23. extern uint32_t idiagnl_meminfo_get_fmem(const struct idiagnl_meminfo *);
  24. extern uint32_t idiagnl_meminfo_get_tmem(const struct idiagnl_meminfo *);
  25. extern void idiagnl_meminfo_set_rmem(struct idiagnl_meminfo *, uint32_t);
  26. extern void idiagnl_meminfo_set_wmem(struct idiagnl_meminfo *, uint32_t);
  27. extern void idiagnl_meminfo_set_fmem(struct idiagnl_meminfo *, uint32_t);
  28. extern void idiagnl_meminfo_set_tmem(struct idiagnl_meminfo *, uint32_t);
  29. #ifdef __cplusplus
  30. }
  31. #endif /* __cplusplus */
  32. #endif /* NETLINK_IDIAGNL_MEMINFO_H_ */