gc.h 696 B

123456789101112131415161718192021222324252627
  1. #ifndef __GC_H
  2. #define __GC_H
  3. struct vfs_stamping {
  4. struct vfs_class *v;
  5. vfsid id;
  6. struct vfs_stamping *parent;
  7. struct vfs_stamping *next;
  8. struct timeval time;
  9. };
  10. extern int vfs_timeout;
  11. void vfs_stamp (struct vfs_class *, vfsid);
  12. void vfs_rmstamp (struct vfs_class *, vfsid, int);
  13. void vfs_add_noncurrent_stamps (struct vfs_class *, vfsid,
  14. struct vfs_stamping *);
  15. void vfs_add_current_stamps (void);
  16. void vfs_timeout_handler (void);
  17. void vfs_expire (int);
  18. int vfs_timeouts (void);
  19. void vfs_release_path (const char *dir);
  20. vfsid vfs_ncs_getid (struct vfs_class *nvfs, const char *dir,
  21. struct vfs_stamping **par);
  22. void vfs_gc_done (void);
  23. #endif /* __GC_H */