arch/mips/include/asm/linkage.h

Source file repositories/reference/linux-study-clean/arch/mips/include/asm/linkage.h

File Facts

System
Linux kernel
Corpus path
arch/mips/include/asm/linkage.h
Extension
.h
Size
307 bytes
Lines
14
Domain
Architecture Layer
Bucket
arch/mips
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __ASM_LINKAGE_H
#define __ASM_LINKAGE_H

#ifdef __ASSEMBLER__
#include <asm/asm.h>
#endif

#define cond_syscall(x) asm(".weak\t" #x "\n" #x "\t=\tsys_ni_syscall")
#define SYSCALL_ALIAS(alias, name)					\
	asm ( #alias " = " #name "\n\t.globl " #alias)

#endif

Annotation

Implementation Notes