---
name: "move_addr_to_kernel"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/move_addr_to_kernel"
---

# move\_addr\_to\_kernel(9)

copy a socket address into kernel space

## NAME

move\_addr\_to\_kernel - copy a socket address into kernel space

## SYNOPSIS

**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

## DESCRIPTION

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.

## COPYRIGHT
