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.

Dependency Surface

Detected Declarations

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

Implementation Notes