move_addr_to_kernel(9)

move_addr_to_kernel9

Copy a socket address into kernel space

Usage

int move_addr_to_kernel(void __user * uaddr, int ulen, void * kaddr);

Arguments

uaddr

Address in user space

ulen

Length in user space

kaddr

Address in kernel space

Overview

The address is copied into kernel space. If the provided address is too long an error code of -EINVAL is returned. If the copy gives invalid addresses -EFAULT is returned. On a success 0 is returned.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Also shipped by linux-manual-2.6.24. Parsed by carta from the page's man source.