LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-13-2008, 10:21 AM   #1
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
General info on functions and macros used in drivers needed


Hello All,

I am new to Linux drivers, though not at all new to Linux, and even more not new to SW, HW, drivers in general.

I've already read a number of articles on Linux drivers and at the moment I feel I see too many little details not being able to grasp the bigger picture.

My current understanding/perception of Linux drivers related stuff can be summarized like this:

1) there is a number of existing kernel functions used by driver developers;
2) there is a number of existing kernel macros used by driver developers;
3) there is a set of DOs and DONTs, as well a number of examples.

My questions are:

1) are all kernel functions meant to be used while developing drivers ?
2) are all kernel macros meant to be used while developing drivers ?
3) if at least one of the above questions is answered NO, then where can I find the exact list of functions and macros to be used in drivers ?
4) is there a well defined driver API and ABI and if yes, where can I find documentation on the API and ABI ?

Thanks,
Sergei.
 
Old 07-14-2008, 07:49 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Here is a good book on developing Linux drivers:

http://oreilly.com/catalog/linuxdrive3/book/index.csp

----------------------
Steve Stites
 
Old 07-15-2008, 12:21 AM   #3
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Original Poster
Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by jailbait View Post
Here is a good book on developing Linux drivers:

http://oreilly.com/catalog/linuxdrive3/book/index.csp

----------------------
Steve Stites
Thanks.

I did quickly read some books, maybe this one
specifically.

My question still remains - I need full list of
functions and macros intended for use in drivers.

Did Linux kernel developers write documentation which
has answers to he above question ?

My point is that Linux kernel and its documentation
is the primary source of info, any book is secondary.

I need pointers to the primary source.

Thanks again,
Sergei.
 
Old 04-30-2009, 06:08 AM   #4
delite
Member
 
Registered: Nov 2008
Posts: 50

Rep: Reputation: 15
I'm sure if you'd actually read the referenced book, you'd have a good idea on how to start and where to find the appropriate functions, it does tell you.

I personally found this book interesting (but I did read it before the other one). But it shows you how to write a module and iterate through the list of all the system hooks. Actually i'm not at home, but that example could have been in this.
 
  


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
newbie to unix programming in C, needed a few simple prgs on these functions! wrapster Programming 7 06-29-2008 01:23 AM
Using kernel functions and macros in userspace karimasif Linux - General 1 01-16-2008 11:34 PM
FTP with those functions needed :( utw-mephisto Debian 6 12-22-2005 08:57 AM
Info needed on Linux in general anon133 Linux - Distributions 12 07-27-2004 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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