devfs_register succeeds but no device appears
From: Jack (jack_at_yankeeboysoftware.com)
Date: 03/20/04
- Next message: Vasili I Galchin: "Re: Modify USB driver for fixed tty port mapping"
- Previous message: Kasper Dupont: "Re: linux interrupt handler/bottom half"
- Next in thread: Frank A. Uepping: "Re: devfs_register succeeds but no device appears"
- Reply: Frank A. Uepping: "Re: devfs_register succeeds but no device appears"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 20 Mar 2004 19:44:53 +0000
Am I being thick ?
Doesn't a successful call to devfs_register result in a new entry in /dev
with a name equivalent to the name I provide as follows
/* Shamelessly ripped out of usb-skeleton.c */
/* initialize the devfs node for this device and register it */
sprintf(name, "skel%d", dev->minor);
dev->devfs = devfs_register (usb_devfs_handle, name,
DEVFS_FL_DEFAULT, USB_MAJOR,
USB_SKEL_MINOR_BASE + dev->minor,
S_IFCHR | S_IRUSR | S_IWUSR |
S_IRGRP | S_IWGRP | S_IROTH,
&skel_fops, NULL);
What happens when I don't have devfs support in my kernel ?
- Next message: Vasili I Galchin: "Re: Modify USB driver for fixed tty port mapping"
- Previous message: Kasper Dupont: "Re: linux interrupt handler/bottom half"
- Next in thread: Frank A. Uepping: "Re: devfs_register succeeds but no device appears"
- Reply: Frank A. Uepping: "Re: devfs_register succeeds but no device appears"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|