arch/sh/mm/tlb-debugfs.c

Source file repositories/reference/linux-study-clean/arch/sh/mm/tlb-debugfs.c

File Facts

System
Linux kernel
Corpus path
arch/sh/mm/tlb-debugfs.c
Extension
.c
Size
3742 bytes
Lines
161
Domain
Architecture Layer
Bucket
arch/sh
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 tlb_debugfs_fops = {
	.owner		= THIS_MODULE,
	.open		= tlb_debugfs_open,
	.read		= seq_read,
	.llseek		= seq_lseek,
	.release	= single_release,
};

static int __init tlb_debugfs_init(void)
{
	debugfs_create_file("itlb", S_IRUSR, arch_debugfs_dir,
			    (void *)TLB_TYPE_ITLB, &tlb_debugfs_fops);
	debugfs_create_file("utlb", S_IRUSR, arch_debugfs_dir,
			    (void *)TLB_TYPE_UTLB, &tlb_debugfs_fops);
	return 0;
}
module_init(tlb_debugfs_init);

MODULE_LICENSE("GPL v2");

Annotation

Implementation Notes