arch/powerpc/kvm/timing.c

Source file repositories/reference/linux-study-clean/arch/powerpc/kvm/timing.c

File Facts

System
Linux kernel
Corpus path
arch/powerpc/kvm/timing.c
Extension
.c
Size
6187 bytes
Lines
214
Domain
Architecture Layer
Bucket
arch/powerpc
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 kvmppc_exit_timing_fops = {
	.owner   = THIS_MODULE,
	.open    = kvmppc_exit_timing_open,
	.read    = seq_read,
	.write   = kvmppc_exit_timing_write,
	.llseek  = seq_lseek,
	.release = single_release,
};

int kvmppc_create_vcpu_debugfs_e500(struct kvm_vcpu *vcpu,
				    struct dentry *debugfs_dentry)
{
	debugfs_create_file("timing", 0666, debugfs_dentry,
			    vcpu, &kvmppc_exit_timing_fops);
	return 0;
}

Annotation

Implementation Notes