LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   functions for device driver (https://www.linuxquestions.org/questions/linux-kernel-70/functions-for-device-driver-708974/)

bliu 03-03-2009 09:03 PM

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

pixellany 03-04-2009 02:01 PM

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/

sundialsvcs 03-04-2009 06:55 PM

The very best source of information is the Linux kernel itself. Install the source-code packages if you have not already done so.

IND 03-16-2009 05:42 AM

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....


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