public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* semi-raw access to flash
@ 2001-12-18 19:22 Russ Dill
  2001-12-18 19:26 ` David Woodhouse
  2001-12-18 19:33 ` Nicolas Pitre
  0 siblings, 2 replies; 3+ messages in thread
From: Russ Dill @ 2001-12-18 19:22 UTC (permalink / raw)
  To: linux-mtd

I'm trying to get semi-raw access to flash in userspace. I'd like to be
able to mmap the flash and write to it (with mtd handling the unlock
commands) but not have mtd automatically cache and erase blocks, etc for
me. /dev/mtd? would be great, but its only a char device, so I can't
mmap it. /dev/mtdblock? is mmapable, but it tries to emulate a true
block device with its automatic erasing and rewriting.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: semi-raw access to flash
  2001-12-18 19:22 semi-raw access to flash Russ Dill
@ 2001-12-18 19:26 ` David Woodhouse
  2001-12-18 19:33 ` Nicolas Pitre
  1 sibling, 0 replies; 3+ messages in thread
From: David Woodhouse @ 2001-12-18 19:26 UTC (permalink / raw)
  To: Russ Dill; +Cc: linux-mtd

Russ.Dill@asu.edu said:
> I'm trying to get semi-raw access to flash in userspace. I'd like to
> be able to mmap the flash and write to it (with mtd handling the
> unlock commands) but not have mtd automatically cache and erase
> blocks, etc for me.

Why? What are you trying to achieve? 

--
dwmw2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: semi-raw access to flash
  2001-12-18 19:22 semi-raw access to flash Russ Dill
  2001-12-18 19:26 ` David Woodhouse
@ 2001-12-18 19:33 ` Nicolas Pitre
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Pitre @ 2001-12-18 19:33 UTC (permalink / raw)
  To: Russ Dill; +Cc: linux-mtd

On 18 Dec 2001, Russ Dill wrote:

> I'm trying to get semi-raw access to flash in userspace. I'd like to be
> able to mmap the flash and write to it (with mtd handling the unlock
> commands) but not have mtd automatically cache and erase blocks, etc for
> me. /dev/mtd? would be great, but its only a char device, so I can't
> mmap it. 

Nothing prevents you from mmap()'ing a char device.  In the MTD case it's 
only not implemented in the driver.


Nicolas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-18 19:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-18 19:22 semi-raw access to flash Russ Dill
2001-12-18 19:26 ` David Woodhouse
2001-12-18 19:33 ` Nicolas Pitre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox