drivers/nvdimm/btt.c
Source file repositories/reference/linux-study-clean/drivers/nvdimm/btt.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/nvdimm/btt.c- Extension
.c- Size
- 43626 bytes
- Lines
- 1729
- Domain
- Driver Families
- Bucket
- drivers/nvdimm
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/highmem.hlinux/debugfs.hlinux/blkdev.hlinux/blk-integrity.hlinux/pagemap.hlinux/module.hlinux/device.hlinux/mutex.hlinux/hdreg.hlinux/sizes.hlinux/ndctl.hlinux/fs.hlinux/nd.hlinux/backing-dev.hlinux/cleanup.hbtt.hnd.h
Detected Declarations
enum log_ent_requestfunction adjust_initial_offsetfunction arena_read_bytesfunction arena_write_bytesfunction btt_info_writefunction btt_info_readfunction __btt_map_writefunction btt_map_writefunction btt_map_readfunction btt_log_group_readfunction arena_debugfs_initfunction btt_debugfs_initfunction list_for_each_entryfunction log_seqfunction btt_log_get_oldfunction desiredfunction __btt_log_writefunction btt_flog_writefunction btt_map_initfunction btt_log_initfunction to_namespace_offsetfunction arena_clear_freelist_errorfunction btt_freelist_initfunction ent_is_paddingfunction statefunction btt_rtt_initfunction btt_maplocks_initfunction free_arenasfunction list_for_each_entry_safefunction parse_arena_metafunction discover_arenasfunction create_arenasfunction btt_arena_write_layoutfunction btt_meta_initfunction btt_meta_sizefunction lba_to_arenafunction list_for_each_entryfunction followingfunction unlock_mapfunction btt_data_readfunction btt_data_writefunction zero_fill_datafunction btt_rw_integrityfunction btt_rw_integrityfunction btt_read_pgfunction btt_is_badblockfunction btt_write_pgfunction btt_do_bvec
Annotated Snippet
module_init(nd_btt_init);
module_exit(nd_btt_exit);
Annotation
- Immediate include surface: `linux/highmem.h`, `linux/debugfs.h`, `linux/blkdev.h`, `linux/blk-integrity.h`, `linux/pagemap.h`, `linux/module.h`, `linux/device.h`, `linux/mutex.h`.
- Detected declarations: `enum log_ent_request`, `function adjust_initial_offset`, `function arena_read_bytes`, `function arena_write_bytes`, `function btt_info_write`, `function btt_info_read`, `function __btt_map_write`, `function btt_map_write`, `function btt_map_read`, `function btt_log_group_read`.
- Atlas domain: Driver Families / drivers/nvdimm.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.