'\" t .\" Title: __clear_user .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Memory Management in Linux .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "__CLEAR_USER" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Memory Management in Linux" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" __clear_user \- Zero a block of memory in user space, with less checking\&. .SH "SYNOPSIS" .HP \w'unsigned\ long\ __clear_user('u .BI "unsigned long __clear_user(void\ __user\ *\ " "to" ", unsigned\ long\ " "n" ");" .SH "ARGUMENTS" .PP \fIto\fR .RS 4 Destination address, in user space\&. .RE .PP \fIn\fR .RS 4 Number of bytes to zero\&. .RE .SH "DESCRIPTION" .PP Zero a block of memory in user space\&. Caller must check the specified block with \fBaccess_ok\fR before calling this function\&. .PP Returns number of bytes that could not be cleared\&. On success, this will be zero\&. .SH "COPYRIGHT" .br