LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-29-2010, 01:31 PM   #1
Aglets
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
Question How do I access SPI Drivers from a User Space App?


I have built an embedded linux kernel and filesystem for a s3c6410.
The goal is to access a device from user space app using the system SPI bus drivers.

Q1: How do I find the MAJOR MINOR numbers for the SPI drivers?
Q2: Do I use mknod /dev/spixxxB.C c MAJOR MINOR?
Q3: Can someone explain how this should be done?

A list of spi driver files & dirs is as follows:
./sys/devices/platform/s3c2410-spi.0
./sys/devices/platform/s3c2410-spi.0/uevent
./sys/devices/platform/s3c2410-spi.0/modalias
./sys/devices/platform/s3c2410-spi.0/subsystem
./sys/devices/platform/s3c2410-spi.0/bus
./sys/devices/platform/s3c2410-spi.0/driver
./sys/devices/platform/s3c2410-spi.1
./sys/devices/platform/s3c2410-spi.1/uevent
./sys/devices/platform/s3c2410-spi.1/modalias
./sys/devices/platform/s3c2410-spi.1/subsystem
./sys/devices/platform/s3c2410-spi.1/bus
./sys/devices/platform/s3c2410-spi.1/driver
./sys/bus/platform/devices/s3c2410-spi.0
./sys/bus/platform/devices/s3c2410-spi.1
./sys/bus/platform/drivers/s3c2410-spi
./sys/bus/platform/drivers/s3c2410-spi/s3c2410-spi.0
./sys/bus/platform/drivers/s3c2410-spi/s3c2410-spi.1
./sys/bus/platform/drivers/s3c2410-spi/uevent
./sys/bus/platform/drivers/s3c2410-spi/unbind
./sys/bus/platform/drivers/s3c2410-spi/bind
./sys/bus/spi
./sys/bus/spi/uevent
./sys/bus/spi/devices
./sys/bus/spi/drivers
./sys/bus/spi/drivers/ltv350qv
./sys/bus/spi/drivers/ltv350qv/uevent
./sys/bus/spi/drivers/ltv350qv/unbind
./sys/bus/spi/drivers/ltv350qv/bind
./sys/bus/spi/drivers_probe
./sys/bus/spi/drivers_autoprobe
./sys/class/spi_master

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Communication between NIC driver and user space app. zman2245 Linux - Kernel 3 01-29-2010 07:39 PM
How to Access the User Space Variable in Kernel rheosiva Linux - Kernel 3 04-17-2009 07:55 PM
How to access device from user space process stardust496 Linux - Hardware 3 07-23-2008 01:40 PM
Can I access NIC directly from user space? jollyshah Linux - Networking 2 01-04-2007 01:32 PM
how to access the different flags of a socket from user space enthusiast_abdul Linux - Networking 0 11-10-2005 03:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration