memdup_user_nul (9) - Linux Man Pages

memdup_user_nul: duplicate memory region from user space and NUL-terminate

NAME

memdup_user_nul - duplicate memory region from user space and NUL-terminate

SYNOPSIS

void * memdup_user_nul(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