Query: spi_register_master
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SPI_REGISTER_MASTER(9) Serial Peripheral Interface (S SPI_REGISTER_MASTER(9)NAMEspi_register_master - register SPI master controllerSYNOPSISint spi_register_master(struct spi_master * master);ARGUMENTSmaster initialized master, originally from spi_alloc_masterCONTEXTcan sleepDESCRIPTIONSPI master controllers connect to their drivers using some non-SPI bus, such as the platform bus. The final stage of probe in that code includes calling spi_register_master to hook up to this SPI bus glue. SPI controllers use board specific (often SOC specific) bus numbers, and board-specific addressing for SPI devices combines those numbers with chip select numbers. Since SPI does not directly support dynamic device identification, boards need configuration tables telling which chip is at which address. This must be called from context that can sleep. It returns zero on success, else a negative error code (dropping the master's refcount). After a successful return, the caller is responsible for calling spi_unregister_master.COPYRIGHTKernel Hackers Manual 3.10 June 2014 SPI_REGISTER_MASTER(9)
Related Man Pages |
---|
spi_async_locked(9) - centos |
struct_spi_master(9) - centos |
struct_spi_message(9) - centos |
struct_spi_device(9) - suse |
struct_spi_message(9) - suse |
Similar Topics in the Unix Linux Community |
---|
modprobe spi_bitbang results in error messages |
Infraction for nistap: Double Posting |