memdup_user(9) duplicate memory region from user space

SYNOPSIS

void * memdup_user(const void __user * src, size_t len);

ARGUMENTS

src

source address in user space

len

number of bytes to copy

DESCRIPTION

Returns an ERR_PTR on failure.

COPYRIGHT