spi_bus_unlock
Prev | Chapter 9. Serial Peripheral Interface (SPI) | Next

## 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.

Prev | Up | Next
spi_bus_lock | Home | spi_write_then_read