arch/riscv/kernel/vdso/gen_vdso_offsets.sh

Source file repositories/reference/linux-study-clean/arch/riscv/kernel/vdso/gen_vdso_offsets.sh

File Facts

System
Linux kernel
Corpus path
arch/riscv/kernel/vdso/gen_vdso_offsets.sh
Extension
.sh
Size
175 bytes
Lines
8
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
SUFFIX=${1:-""}
sed -n -e \
's/^[0]\+\(0[0-9a-fA-F]*\) . \(__vdso_[a-zA-Z0-9_]*\)$/\#define \2'$SUFFIX'_offset\t0x\1/p'

Annotation

Implementation Notes