Skip to contentSkip to conversation

(no subject)

DISCUSSION Jim Zeus 2 participants 2 messages Mar 27, 2002 Memory technology devices (MTD)

lore
Share & tools
lore

Jim Zeus

author
#0 lore raw

Hi,David
Can you tell me why only my mtd char device with even minor deivce number works? and there is no such thing happened on my mtd block device.

and I find that in drivers/mtd/mtdchar.c/mtd_open there is a line :

	int devnum = minor >> 1;

I think if this is the reason, the odd mtd char devs should works just like the even devs, that means the dev1 should be the same thing as dev0,and dev3==dev2... isnt it?

Thanks

Jim Zeus

_____________________________________________________________
Want a new web-based email account ? ---> http://www.firstlinux.net

_____________________________________________________________
Run a small business? Then you need professional email like [email protected] from Everyone.net http://www.everyone.net?tag

#1 lore raw
Quoted 3 lines · [email protected] said:

Can you tell me why only my mtd char device with even minor deivce
number works? and there is no such thing happened on my mtd block device.

Did you run the MAKEDEV script or try to make your devices by hand? If you did them by hand, did you do so without referring to Documentation/devices.txt?

grep -A6 " 90 char" /usr/src/linux/Documentation/devices.txt

--
dwmw2