arch/mips/include/uapi/asm/unistd.h

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

File Facts

System
Linux kernel
Corpus path
arch/mips/include/uapi/asm/unistd.h
Extension
.h
Size
1013 bytes
Lines
40
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 _UAPI_ASM_UNISTD_H
#define _UAPI_ASM_UNISTD_H

#include <asm/sgidefs.h>

#if _MIPS_SIM == _MIPS_SIM_ABI32

#define __NR_Linux	4000
#include <asm/unistd_o32.h>

#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */

#if _MIPS_SIM == _MIPS_SIM_ABI64

#define __NR_Linux	5000
#include <asm/unistd_n64.h>

#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */

#if _MIPS_SIM == _MIPS_SIM_NABI32

#define __NR_Linux	6000
#include <asm/unistd_n32.h>

#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */

#endif /* _UAPI_ASM_UNISTD_H */

Annotation

Implementation Notes