The spi_open() function lets the application connect to the SPI resource manager. The prototype for this function is:
int spi_open( const char *path );
The argument is:
This function returns a file descriptor, or -1 if the open failed.