arch/riscv/kernel/compat_vdso/gen_compat_vdso_offsets.sh

Source file repositories/reference/linux-study-clean/arch/riscv/kernel/compat_vdso/gen_compat_vdso_offsets.sh

File Facts

System
Linux kernel
Corpus path
arch/riscv/kernel/compat_vdso/gen_compat_vdso_offsets.sh
Extension
.sh
Size
154 bytes
Lines
6
Domain
Architecture Layer
Bucket
arch/riscv
Inferred role
Architecture Layer: arch/riscv
Status
atlas-only

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

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0

LC_ALL=C
sed -n -e 's/^[0]\+\(0[0-9a-fA-F]*\) . \(__vdso_[a-zA-Z0-9_]*\)$/\#define compat\2_offset\t0x\1/p'

Annotation

Implementation Notes