arch/loongarch/kernel/unwind_guess.c
Source file repositories/reference/linux-study-clean/arch/loongarch/kernel/unwind_guess.c
File Facts
- System
- Linux kernel
- Corpus path
arch/loongarch/kernel/unwind_guess.c- Extension
.c- Size
- 712 bytes
- Lines
- 28
- Domain
- Architecture Layer
- Bucket
- arch/loongarch
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
asm/unwind.hlinux/export.h
Detected Declarations
function Copyrightfunction unwind_startfunction unwind_next_frameexport unwind_get_return_addressexport unwind_startexport unwind_next_frame
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2022 Loongson Technology Corporation Limited
*/
#include <asm/unwind.h>
#include <linux/export.h>
unsigned long unwind_get_return_address(struct unwind_state *state)
{
return __unwind_get_return_address(state);
}
EXPORT_SYMBOL_GPL(unwind_get_return_address);
void unwind_start(struct unwind_state *state, struct task_struct *task,
struct pt_regs *regs)
{
__unwind_start(state, task, regs);
if (!unwind_done(state) && !__kernel_text_address(state->pc))
unwind_next_frame(state);
}
EXPORT_SYMBOL_GPL(unwind_start);
bool unwind_next_frame(struct unwind_state *state)
{
return default_next_frame(state);
}
EXPORT_SYMBOL_GPL(unwind_next_frame);
Annotation
- Immediate include surface: `asm/unwind.h`, `linux/export.h`.
- Detected declarations: `function Copyright`, `function unwind_start`, `function unwind_next_frame`, `export unwind_get_return_address`, `export unwind_start`, `export unwind_next_frame`.
- Atlas domain: Architecture Layer / arch/loongarch.
- Implementation status: integration 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.