arch/riscv/include/asm/cpu_ops.h

Source file repositories/reference/linux-study-clean/arch/riscv/include/asm/cpu_ops.h

File Facts

System
Linux kernel
Corpus path
arch/riscv/include/asm/cpu_ops.h
Extension
.h
Size
972 bytes
Lines
36
Domain
Architecture Layer
Bucket
arch/riscv
Inferred role
Architecture Layer: implementation source
Status
source 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

struct cpu_operations {
	int		(*cpu_start)(unsigned int cpu,
				     struct task_struct *tidle);
#ifdef CONFIG_HOTPLUG_CPU
	void		(*cpu_stop)(void);
	bool		(*cpu_is_stopped)(unsigned int cpu);
#endif
};

extern const struct cpu_operations cpu_ops_spinwait;
extern const struct cpu_operations *cpu_ops;
void __init cpu_set_ops(void);

#endif /* ifndef __ASM_CPU_OPS_H */

Annotation

Implementation Notes