arch/xtensa/platforms/iss/setup.c
Source file repositories/reference/linux-study-clean/arch/xtensa/platforms/iss/setup.c
File Facts
- System
- Linux kernel
- Corpus path
arch/xtensa/platforms/iss/setup.c- Extension
.c- Size
- 1992 bytes
- Lines
- 89
- Domain
- Architecture Layer
- Bucket
- arch/xtensa
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/init.hlinux/kernel.hlinux/notifier.hlinux/panic_notifier.hlinux/printk.hlinux/reboot.hlinux/string.hasm/platform.hasm/setup.hplatform/simcall.h
Detected Declarations
function iss_power_offfunction iss_restartfunction iss_panic_eventfunction platform_setup
Annotated Snippet
if (argv_size > sizeof(argv)) {
pr_err("%s: command line too long: argv_size = %d\n",
__func__, argv_size);
} else {
int i;
cmdline[0] = 0;
simc_argv((void *)argv);
for (i = 1; i < argc; ++i) {
if (i > 1)
strcat(cmdline, " ");
strcat(cmdline, argv[i]);
}
*p_cmdline = cmdline;
}
}
atomic_notifier_chain_register(&panic_notifier_list, &iss_panic_block);
register_sys_off_handler(SYS_OFF_MODE_RESTART,
SYS_OFF_PRIO_PLATFORM,
iss_restart, NULL);
register_sys_off_handler(SYS_OFF_MODE_POWER_OFF,
SYS_OFF_PRIO_PLATFORM,
iss_power_off, NULL);
}
Annotation
- Immediate include surface: `linux/init.h`, `linux/kernel.h`, `linux/notifier.h`, `linux/panic_notifier.h`, `linux/printk.h`, `linux/reboot.h`, `linux/string.h`, `asm/platform.h`.
- Detected declarations: `function iss_power_off`, `function iss_restart`, `function iss_panic_event`, `function platform_setup`.
- Atlas domain: Architecture Layer / arch/xtensa.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.