---
name: "find_first_bit"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/find_first_bit"
---

# find\_first\_bit(9)

find the first set bit in a memory region

## NAME

find\_first\_bit - find the first set bit in a memory region

## SYNOPSIS

**unsigned find\_first\_bit(const unsigned long \*** *addr***, unsigned** *size***);**

## ARGUMENTS

*addr*

The address to start the search at

*size*

The maximum size to search

## DESCRIPTION

Returns the bit-number of the first set bit, not the number of the byte containing a bit.

## COPYRIGHT
