---
name: "spi_bus_unlock"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/spi_bus_unlock"
---

# spi\_bus\_unlock(9)

release the lock for exclusive SPI bus usage

## NAME

spi\_bus\_unlock - release the lock for exclusive SPI bus usage

## SYNOPSIS

**int spi\_bus\_unlock(struct spi\_master \*** *master***);**

## ARGUMENTS

*master*

SPI bus master that was locked for exclusive bus access

## CONTEXT

can sleep

## DESCRIPTION

This call may only be used from a context that may sleep. The sleep is non-interruptible, and has no timeout.

This call releases an SPI bus lock previously obtained by an spi\_bus\_lock call.

It returns zero on success, else a negative error code.

## COPYRIGHT
