arch/sh/kernel/cpu/sh4/sq.c
Source file repositories/reference/linux-study-clean/arch/sh/kernel/cpu/sh4/sq.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/kernel/cpu/sh4/sq.c- Extension
.c- Size
- 9553 bytes
- Lines
- 414
- Domain
- Architecture Layer
- Bucket
- arch/sh
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- 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/init.hlinux/cpu.hlinux/bitmap.hlinux/device.hlinux/kernel.hlinux/module.hlinux/slab.hlinux/vmalloc.hlinux/mm.hlinux/io.hlinux/prefetch.hasm/page.hasm/cacheflush.hcpu/sq.h
Detected Declarations
struct sq_mappingstruct sq_mappingstruct sq_sysfs_attrfunction sq_flush_rangefunction sq_mapping_list_addfunction sq_mapping_list_delfunction __sq_remapfunction sq_remapfunction sq_remapfunction sq_sysfs_showfunction sq_sysfs_storefunction mapping_showfunction mapping_storefunction sq_dev_addfunction sq_dev_removefunction sq_api_initfunction sq_api_exitmodule init sq_api_initexport sq_flush_rangeexport sq_remapexport sq_unmap
Annotated Snippet
module_init(sq_api_init);
module_exit(sq_api_exit);
MODULE_AUTHOR("Paul Mundt <lethal@linux-sh.org>, M. R. Brown <mrbrown@0xd6.org>");
MODULE_DESCRIPTION("Simple API for SH-4 integrated Store Queues");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/init.h`, `linux/cpu.h`, `linux/bitmap.h`, `linux/device.h`, `linux/kernel.h`, `linux/module.h`, `linux/slab.h`, `linux/vmalloc.h`.
- Detected declarations: `struct sq_mapping`, `struct sq_mapping`, `struct sq_sysfs_attr`, `function sq_flush_range`, `function sq_mapping_list_add`, `function sq_mapping_list_del`, `function __sq_remap`, `function sq_remap`, `function sq_remap`, `function sq_sysfs_show`.
- Atlas domain: Architecture Layer / arch/sh.
- 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.