drivers/md/dm-vdo/indexer/index-layout.h
Source file repositories/reference/linux-study-clean/drivers/md/dm-vdo/indexer/index-layout.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/md/dm-vdo/indexer/index-layout.h- Extension
.h- Size
- 1369 bytes
- Lines
- 44
- Domain
- Driver Families
- Bucket
- drivers/md
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
config.hindexer.hio-factory.h
Detected Declarations
struct index_layout
Annotated Snippet
#ifndef UDS_INDEX_LAYOUT_H
#define UDS_INDEX_LAYOUT_H
#include "config.h"
#include "indexer.h"
#include "io-factory.h"
/*
* The index layout describes the format of the index on the underlying storage, and is responsible
* for creating those structures when the index is first created. It also validates the index data
* when loading a saved index, and updates it when saving the index.
*/
struct index_layout;
int __must_check uds_make_index_layout(struct uds_configuration *config, bool new_layout,
struct index_layout **layout_ptr);
void uds_free_index_layout(struct index_layout *layout);
int __must_check uds_replace_index_layout_storage(struct index_layout *layout,
struct block_device *bdev);
int __must_check uds_load_index_state(struct index_layout *layout,
struct uds_index *index);
int __must_check uds_save_index_state(struct index_layout *layout,
struct uds_index *index);
int __must_check uds_discard_open_chapter(struct index_layout *layout);
u64 __must_check uds_get_volume_nonce(struct index_layout *layout);
int __must_check uds_open_volume_bufio(struct index_layout *layout, size_t block_size,
unsigned int reserved_buffers,
struct dm_bufio_client **client_ptr);
#endif /* UDS_INDEX_LAYOUT_H */
Annotation
- Immediate include surface: `config.h`, `indexer.h`, `io-factory.h`.
- Detected declarations: `struct index_layout`.
- Atlas domain: Driver Families / drivers/md.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.