GET_USER

Section: (9)
Updated: 07 August 2003
Index Return to Main Contents

 

NAME

get_user - Get a simple variable from user space.  

SYNOPSIS

get_user ( x, ptr);  

ARGUMENTS

x
Variable to store result.
ptr
Source address, in user space.
 

CONTEXT

User context only. This function may sleep.  

DESCRIPTION

This macro copies a single simple variable from user space to kernel space. It supports simple types like char and int, but not larger data types like structures or arrays.

ptr must have pointer-to-simple-variable type, and the result of dereferencing ptr must be assignable to x without a cast.

Returns zero on success, or -EFAULT on error. On error, the variable x is set to zero.  

ABOUT THIS DOCUMENT

This documentation was generated with kernel version 2.6.0.


 

Index

NAME
SYNOPSIS
ARGUMENTS
CONTEXT
DESCRIPTION
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 09:53:38 GMT, April 09, 2004