arch/um/os-Linux/elf_aux.c

Source file repositories/reference/linux-study-clean/arch/um/os-Linux/elf_aux.c

File Facts

System
Linux kernel
Corpus path
arch/um/os-Linux/elf_aux.c
Extension
.c
Size
1263 bytes
Lines
51
Domain
Architecture Layer
Bucket
arch/um
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

switch ( auxv->a_type ) {
			case AT_HWCAP:
				elf_aux_hwcap = auxv->a_un.a_val;
				break;
			case AT_PLATFORM:
                                /* elf.h removed the pointer elements from
                                 * a_un, so we have to use a_val, which is
                                 * all that's left.
                                 */
				elf_aux_platform =
					(char *) (long) auxv->a_un.a_val;
				break;
		}
	}
}

Annotation

Implementation Notes