LinuxQuestions.org
Review your favorite Linux distribution.
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 03-03-2009, 09:03 PM   #1
bliu
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
functions for device driver


Is there anyone an expert for device driver? If I wanted to use function such as "alloc_chrdev_region()" or "class_device_create()", where I can find the detail information about them?
Thanks,
bliu
 
Old 03-04-2009, 02:01 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I think we will need some context for this.....What kind of driver? What development environment? ...etc.

Functions get defined either in your code or in some library function. If you are writing a kernel module, then you will use the kernel headers as part of your development environment.

Do you have this book?:
http://oreilly.com/catalog/9780596005900/
 
Old 03-04-2009, 06:55 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
The very best source of information is the Linux kernel itself. Install the source-code packages if you have not already done so.
 
Old 03-16-2009, 05:42 AM   #4
IND
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Rep: Reputation: 0
Hi,
if you have linux device drivers 3rd edition book, please read the 3rd chapter.....
and if you linux source please go through the fs.h ( include/linux/fs.h )

thanks....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Multiple Device driver from single device driver???? rickhg12hs Linux - Kernel 3 05-25-2008 12:11 AM
Problem in using ioread32() and iowrite32() functions for device driver for 2.6 kerne misbah Linux - Software 1 05-09-2007 05:24 AM
Problem using ioread32() and iowrite32() functions in 2.6 kernel for linux device dr misbah Linux - General 0 05-09-2007 04:56 AM
tty driver open and close functions mayank_linux Linux - Networking 0 06-21-2006 07:45 AM

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

All times are GMT -5. The time now is 08:47 PM.

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