LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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: 8,450
Blog Entries: 4

Rep: Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915
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 02:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration