Name

memdup_user — 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.