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

# w1\_reset\_select\_slave(9)

reset and select a slave

## NAME

w1\_reset\_select\_slave - reset and select a slave

## SYNOPSIS

**int w1\_reset\_select\_slave(struct w1\_slave \*** *sl***);**

## ARGUMENTS

*sl*

the slave to select

## DESCRIPTION

Resets the bus and then selects the slave by sending either a skip rom or a rom match. A skip rom is issued if there is only one device registered on the bus. The w1 master lock must be held.

## RETURN

0=success, anything else=error

## AUTHOR

**David Fries** \<David@Fries.net\>

Author.

## COPYRIGHT
