move_addr_to_kernel — copy a socket address into kernel space
Address in user space
Length in user space
Address in kernel space
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.