__PUT_USER

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

 

NAME

__put_user - Write a simple value into user space, with less checking.  

SYNOPSIS

__put_user ( x, ptr);  

ARGUMENTS

x
Value to copy to user space.
ptr
Destination address, in user space.
 

CONTEXT

User context only. This function may sleep.  

DESCRIPTION

This macro copies a single simple value from kernel space to user 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 x must be assignable to the result of dereferencing ptr.

Caller must check the pointer with access_ok before calling this function.

Returns zero on success, or -EFAULT on error.  

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: 08:41:20 GMT, April 09, 2004