Skip to contentSkip to conversation

2.4 - can't open a custom char device file

DISCUSSION Ron Gage 1 participant 1 message Apr 2, 2004

lore
Share & tools
lore

Ron Gage

author
#0 lore raw

Hi folks.

I am working on a PCMCIA module for an industrial communications interface under Linux (Specifically, the Allen Bradley PCMK). Let's just say that the driver I wrote is having issues, what I believe to be kernel related issues.

As near as I can tell, the card is being initialized correctly with the PCMCIA layer without incident. My driver is registering the device as major 240, and according to /proc/devices, the device is showing up as major 240.

My device file is created as a char device at major 240, minor 0. As near as I can tell, I do have a file-operations struct filled in and have no indications that this struct is incorrect. I do have a defined open routine that essentially increments the module use count and exits.

Problem is that any attempt to open the device file causes the kernel to return error #6 - Device or Address not found - when the device is showing up in /proc/devices and according to kernel messages I have in the driver, is installed and initialized.

Anyone have any ideas on what I could be doing wrong here?

Driver source is available from
ftp://ftp.rongage.org/pub/pcmk/pcmk_v0.0.0.tar.gz

I have already consulted with David Hinds (PCMCIA leader) and he is stumped.

Signature · 10 lines
Ronald R. Gage
MCP, LPIC1, A+, Net+
Pontiac, Michigan





----------------------------------------------------------------
This message was sent using webmail provided by www.rongage.org