---
name: "spi_busnum_to_master"
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_busnum_to_master"
---

# spi\_busnum\_to\_master(9)

look up master associated with bus\_num

## NAME

spi\_busnum\_to\_master - look up master associated with bus\_num

## SYNOPSIS

**struct spi\_master \* spi\_busnum\_to\_master(u16** *bus\_num***);**

## ARGUMENTS

*bus\_num*

the master's bus number

## CONTEXT

can sleep

## DESCRIPTION

This call may be used with devices that are registered after arch init time. It returns a refcounted pointer to the relevant spi\_master (which the caller must release), or NULL if there is no such master registered.

## COPYRIGHT
