---
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*

Bit to change

*addr*

Address to start counting from

## DESCRIPTION

**change\_bit** is atomic and may not be reordered. Note that *nr* may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.

## COPYRIGHT
