* RO permission on odd numbered MTD devices?
@ 2001-09-19 21:16 Mike Hill
2001-09-19 21:22 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Mike Hill @ 2001-09-19 21:16 UTC (permalink / raw)
To: linux-mtd
Can anyone tell me why the odd numbered MTD character devices are ReadOnly?
I see the code in MTDCHAR.C, but I have no idea what it was setup this way.
/* You can't open the RO devices RW */
if ((file->f_mode & 2) && (minor & 1))
return -EACCES;
Thanks for any understanding you can provide...
-Mike
===========================================
Michael Hill - Systems Developer
Bus-Tech, Inc.
Email: mhill@bustech.com
Phone: (919) 847-7859 Fax: (919) 847-0182
===========================================
Say "boolah boolah boolah" out loud three times,
wave a dead chicken, and reboot.
Works for me...
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: RO permission on odd numbered MTD devices?
2001-09-19 21:16 RO permission on odd numbered MTD devices? Mike Hill
@ 2001-09-19 21:22 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-09-19 21:22 UTC (permalink / raw)
To: Mike Hill; +Cc: linux-mtd
mhill@bustech.com said:
> Can anyone tell me why the odd numbered MTD character devices are
> ReadOnly?
> I see the code in MTDCHAR.C, but I have no idea what it was setup this
> way.
grep --context=3 mtdr0 /usr/src/linux/Documentation/devices.txt
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-09-19 21:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-19 21:16 RO permission on odd numbered MTD devices? Mike Hill
2001-09-19 21:22 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox