Linux - KernelThis forum is for all discussion relating to the Linux kernel.

Notices

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Forgive me if this topic is already posted, I searched and couldn't find it. If it is and has useful info, please send me the link to the post.....

I am writing a device driver for Gentoo Linux (2006.0 - kernel 2.6x) for a PCI hardware device and seem to be having interrupt problems.

I have two PCI hardware devices and have ported my device driver from Redhat 9 (kernel 2.4x).

In my driver, I am using the request_irq() kernel function in my driver to reqister my interrupt handler and only receive interrupts from one of my boards, but not the other one. I have swapped the boards' physical locations and made sure that they swapped IRQ lines as a test and it seems to have followed the physical location so I am 99.999% sure it is not a board problem and %99.99 sure it is not my chassis, based on other tests I have ran. The device has a PLX 9030 chip on it and I have determined that the correct register for the interrupt line has indead gone low and should have generated a hardware interrupt but I am not seeing it in my driver.

Am I having a porting issue (from RH 9 to Gentoo)? Am I incorrectly enabling my PCI device? Is there a good example of a PCI device driver that uses interrupts for multiple devices available?