xref: /linux/arch/powerpc/kernel/vdso/vgetrandom.c (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Powerpc userspace implementation of getrandom()
4  *
5  * Copyright (C) 2024 Christophe Leroy <christophe.leroy@csgroup.eu>, CS GROUP France
6  */
7 #include <linux/time.h>
8 #include <linux/types.h>
9 
10 ssize_t __c_kernel_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state,
11 			     size_t opaque_len, const struct vdso_rng_data *vd)
12 {
13 	return __cvdso_getrandom_data(vd, buffer, len, flags, opaque_state, opaque_len);
14 }
15