diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-02-14 11:16:17 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-02-14 11:17:01 -0500 |
commit | 16ba60f128f6a099f4d47291e570019a7c897f00 (patch) | |
tree | 3b8c1574ba4f85f1275a7639ac6e45e44a67d595 /src/bftw.c | |
parent | ed36b75a120830d835194fc793cfcb212ab67929 (diff) | |
download | bfs-16ba60f128f6a099f4d47291e570019a7c897f00.tar.xz |
bftw: Document which bftw_file nodes go with which lists
Diffstat (limited to 'src/bftw.c')
-rw-r--r-- | src/bftw.c | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -196,12 +196,26 @@ struct bftw_file { /** The root under which this file was found. */ struct bftw_file *root; - /** The next file to open/close/visit. */ + /** + * List node for: + * + * bftw_queue::buffer + * bftw_queue::waiting + * bftw_file_open()::parents + */ struct bftw_file *next; - /** The next directory to read. */ + + /** + * List node for: + * + * bftw_queue::ready + * bftw_state::to_close + */ struct { struct bftw_file *next; } ready; - /** LRU list node. */ + /** + * List node for bftw_cache. + */ struct { struct bftw_file *prev; struct bftw_file *next; |