arch/powerpc/kernel/vdso/vgetrandom.c

Source file repositories/reference/linux-study-clean/arch/powerpc/kernel/vdso/vgetrandom.c

File Facts

System
Linux kernel
Corpus path
arch/powerpc/kernel/vdso/vgetrandom.c
Extension
.c
Size
432 bytes
Lines
15
Domain
Architecture Layer
Bucket
arch/powerpc
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

// SPDX-License-Identifier: GPL-2.0
/*
 * Powerpc userspace implementation of getrandom()
 *
 * Copyright (C) 2024 Christophe Leroy <christophe.leroy@csgroup.eu>, CS GROUP France
 */
#include <linux/time.h>
#include <linux/types.h>

ssize_t __c_kernel_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state,
			     size_t opaque_len)
{
	return __cvdso_getrandom(buffer, len, flags, opaque_state, opaque_len);
}

Annotation

Implementation Notes