.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "__GET_USER" 9 "August 2005" "Kernel Hackers Manual" "LINUX" .SH NAME __get_user \- Get a simple variable from user space, with less checking. .SH "SYNOPSIS" .ad l .hy 0 .HP 13 \fB__get_user\ \fR\ (\fIx\fR, \fIptr\fR); .ad .hy .SH "ARGUMENTS" .TP \fIx\fR Variable to store result\&. .TP \fIptr\fR Source address, in user space\&. .SH "CONTEXT" .PP User context only\&. This function may sleep\&. .SH "DESCRIPTION" .PP 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\&. .PP \fIptr\fR must have pointer\-to\-simple\-variable type, and the result of dereferencing \fIptr\fR must be assignable to \fIx\fR without a cast\&. .PP Caller must check the pointer with \fBaccess_ok\fR before calling this function\&. .PP Returns zero on success, or \-EFAULT on error\&. On error, the variable \fIx\fR is set to zero\&.