fs/iomap/internal.h
Source file repositories/reference/linux-study-clean/fs/iomap/internal.h
File Facts
- System
- Linux kernel
- Corpus path
fs/iomap/internal.h- Extension
.h- Size
- 1018 bytes
- Lines
- 36
- Domain
- Core OS
- Bucket
- VFS And Filesystem Core
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- 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
- No C-style include directives detected by the generator.
Detected Declarations
function iomap_max_bio_sizefunction iomap_bio_read_folio_range_sync
Annotated Snippet
#ifndef _IOMAP_INTERNAL_H
#define _IOMAP_INTERNAL_H 1
#define IOEND_BATCH_SIZE 4096
/*
* Normally we can build bios as big as the data structure supports.
*
* But for integrity protected I/O we need to respect the maximum size of the
* single contiguous allocation for the integrity buffer.
*/
static inline size_t iomap_max_bio_size(const struct iomap *iomap)
{
if (iomap->flags & IOMAP_F_INTEGRITY)
return max_integrity_io_size(bdev_limits(iomap->bdev));
return BIO_MAX_SIZE;
}
u32 iomap_finish_ioend_buffered_read(struct iomap_ioend *ioend);
u32 iomap_finish_ioend_direct(struct iomap_ioend *ioend);
#ifdef CONFIG_BLOCK
int iomap_bio_read_folio_range_sync(const struct iomap_iter *iter,
struct folio *folio, loff_t pos, size_t len);
#else
static inline int iomap_bio_read_folio_range_sync(const struct iomap_iter *iter,
struct folio *folio, loff_t pos, size_t len)
{
WARN_ON_ONCE(1);
return -EIO;
}
#endif /* CONFIG_BLOCK */
#endif /* _IOMAP_INTERNAL_H */
Annotation
- Detected declarations: `function iomap_max_bio_size`, `function iomap_bio_read_folio_range_sync`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- 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.