LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-25-2013, 08:10 PM   #1
georgewhr
Member
 
Registered: Nov 2012
Location: SF Bay Area
Posts: 47

Rep: Reputation: Disabled
Cool concept of SPI device driver inside kernel


Hi. I just started to learn SPI device driver. Inside /kernel/driver/spi, I found there is spi.c, spidev.c and spi-xxxx.c(for particular vendor chipset). Can anybody give me any details or mechanism about how thoes three modules work inside kernel? For my understand, spi.c is just a function module inside kernel, spidev.c is like a generic spi driver, spi-xxx.c is for particular vendor chip. But I don't know what's the relationship of them.
 
Old 11-19-2013, 11:42 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

Linux kernels are modular: a lot of the functionality is contained in modules that are loaded into the kernel dynamically. This keeps the core of the kernel small and makes it possible to load or replace modules in a running kernel without rebooting.

If you want to find out what modules are currently loaded into the kernel, use lsmod.

You can manually load and unload modules using modeprobe.

http://www.tldp.org/LDP/lkmpg/2.6/lkmpg.pdf
http://www.tuxradar.com/content/how-linux-kernel-works
 
  


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
getting kernel OOPS in SPI driver rbhsrh Linux - Kernel 2 05-09-2012 11:51 PM
Can i register a ssc driver (a serial interface device) to be a spi driver ? 5883 Programming 0 03-04-2012 06:14 PM
About use FIQ for SPI slave in device driver. jason222333 Linux - Kernel 4 10-25-2010 02:37 PM
Easiest way to read from device inside another kernel driver ineya Programming 8 09-06-2008 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:33 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