arch/mips/mm/sc-debugfs.c
Source file repositories/reference/linux-study-clean/arch/mips/mm/sc-debugfs.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/mm/sc-debugfs.c- Extension
.c- Size
- 1302 bytes
- Lines
- 62
- Domain
- Architecture Layer
- Bucket
- arch/mips
- Inferred role
- Architecture Layer: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
asm/bcache.hasm/debug.hlinux/uaccess.hlinux/debugfs.hlinux/init.h
Detected Declarations
function Copyrightfunction sc_prefetch_writefunction sc_debugfs_init
Annotated Snippet
static const struct file_operations sc_prefetch_fops = {
.open = simple_open,
.llseek = default_llseek,
.read = sc_prefetch_read,
.write = sc_prefetch_write,
};
static int __init sc_debugfs_init(void)
{
struct dentry *dir;
dir = debugfs_create_dir("l2cache", mips_debugfs_dir);
debugfs_create_file("prefetch", S_IRUGO | S_IWUSR, dir, NULL,
&sc_prefetch_fops);
return 0;
}
late_initcall(sc_debugfs_init);
Annotation
- Immediate include surface: `asm/bcache.h`, `asm/debug.h`, `linux/uaccess.h`, `linux/debugfs.h`, `linux/init.h`.
- Detected declarations: `function Copyright`, `function sc_prefetch_write`, `function sc_debugfs_init`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: pattern 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.