FedoraThis forum is for the discussion of the Fedora Project.
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.
Click Here to receive this Complete Guide absolutely free.
I am trying to write a kernel USB driver. I have loaded the module and see that the core has accepted the registration. I have given the registration the following table for devices that the driver supports- according to all the doumentation I can find, this structure should tell the core to call my probe function for every device that gets plugged in
The usb_driver structure is as follows:
static struct us_driver mydriver=
As I said, I see the core register the driver (through a message in the log file that I see with dmesg), and a driver shows up under /sys/bus/usb/drivers. When I plug in a memory stick, I see the device being added in the log file again (and via a usbview tool) but my probe function does not get called. I have a printk at the start of the probe function but I never see it in the log (I have a similar message in the init function and I do see that one).
Any help is greatly appreciated - I am running 2.6.9-1.667 and the driver sample I got from the Linux Device Drivers 3rd edition book.