MOVE_ADDR_TO_USER

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

move_addr_to_user - copy an address to user space  

SYNOPSIS

"SYNOPSIS"

int move_addr_to_user (void * kaddr, int klen, void __user * uaddr, int __user * ulen);  

ARGUMENTS

kaddr
kernel space address
klen
length of address in kernel
uaddr
user space address
ulen
pointer to user length field
 

DESCRIPTION

The value pointed to by ulen on entry is the buffer length available. This is overwritten with the buffer space used. -EINVAL is returned if an overlong buffer is specified or a negative buffer size. -EFAULT is returned if either the buffer or the length field are not accessible. After copying the data up to the limit the user specifies, the true length of the data is written over the length limit the user specified. Zero is returned for a success.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 05:30:46 GMT, October 06, 2005