You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
554 B

  1. #pragma once
  2. #include "lock.h"
  3. #include "lfmp.h"
  4. typedef struct node_s node_t;
  5. struct node_s
  6. {
  7. node_t *name_next;
  8. node_t *id_next;
  9. uint64_t nodeid;
  10. char *name;
  11. node_t *parent;
  12. uint64_t nlookup;
  13. uint32_t refctr;
  14. uint32_t open_count;
  15. uint64_t hidden_fh;
  16. int32_t treelock;
  17. lock_t *locks;
  18. uint32_t stat_crc32b;
  19. uint8_t is_stat_cache_valid:1;
  20. };
  21. #ifdef __cplusplus
  22. extern "C"
  23. {
  24. #endif
  25. node_t *node_alloc();
  26. void node_free(node_t*);
  27. int node_gc1();
  28. void node_gc();
  29. lfmp_t *node_lfmp();
  30. #ifdef __cplusplus
  31. }
  32. #endif