arch/sh/include/asm/smp-ops.h
Source file repositories/reference/linux-study-clean/arch/sh/include/asm/smp-ops.h
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/include/asm/smp-ops.h- Extension
.h- Size
- 1042 bytes
- Lines
- 54
- Domain
- Architecture Layer
- Bucket
- arch/sh
- 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.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct plat_smp_opsfunction plat_smp_setupfunction play_deadfunction plat_smp_setup
Annotated Snippet
struct plat_smp_ops {
void (*smp_setup)(void);
unsigned int (*smp_processor_id)(void);
void (*prepare_cpus)(unsigned int max_cpus);
void (*start_cpu)(unsigned int cpu, unsigned long entry_point);
void (*send_ipi)(unsigned int cpu, unsigned int message);
int (*cpu_disable)(unsigned int cpu);
void (*cpu_die)(unsigned int cpu);
void (*play_dead)(void);
};
extern struct plat_smp_ops *mp_ops;
extern struct plat_smp_ops shx3_smp_ops;
#ifdef CONFIG_SMP
static inline void plat_smp_setup(void)
{
BUG_ON(!mp_ops);
mp_ops->smp_setup();
}
static inline void __noreturn play_dead(void)
{
mp_ops->play_dead();
BUG();
}
extern void register_smp_ops(struct plat_smp_ops *ops);
#else
static inline void plat_smp_setup(void)
{
/* UP, nothing to do ... */
}
static inline void register_smp_ops(struct plat_smp_ops *ops)
{
}
static inline void __noreturn play_dead(void)
{
BUG();
}
#endif /* CONFIG_SMP */
#endif /* __ASM_SH_SMP_OPS_H */
Annotation
- Detected declarations: `struct plat_smp_ops`, `function plat_smp_setup`, `function play_dead`, `function plat_smp_setup`.
- Atlas domain: Architecture Layer / arch/sh.
- Implementation status: source 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.