---
name: "__clear_user"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/__clear_user"
---

# \_\_clear\_user(9)

Zero a block of memory in user space, with less checking.

## NAME

\_\_clear\_user - Zero a block of memory in user space, with less checking.

## SYNOPSIS

**unsigned long \_\_clear\_user(void \_\_user \*** *to***, unsigned long** *n***);**

## ARGUMENTS

*to*

Destination address, in user space.

*n*

Number of bytes to zero.

## DESCRIPTION

Zero a block of memory in user space. Caller must check the specified block with **access\_ok** before calling this function.

Returns number of bytes that could not be cleared. On success, this will be zero.

## COPYRIGHT
