---
name: "__change_bit"
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/__change_bit"
---

# \_\_change\_bit(9)

Toggle a bit in memory

## NAME

\_\_change\_bit - Toggle a bit in memory

## SYNOPSIS

**void \_\_change\_bit(long** *nr***, volatile unsigned long \*** *addr***);**

## ARGUMENTS

*nr*

the bit to change

*addr*

the address to start counting from

## DESCRIPTION

Unlike **change\_bit**, this function is non-atomic and may be reordered. If it's called on the same region of memory simultaneously, the effect may be that only one operation succeeds.

## COPYRIGHT
