public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Accessing an MTD device from kernel space
@ 2004-05-26 21:21 Eisenhut, Daniel (MED)
  2004-05-26 21:26 ` Thomas Gleixner
  0 siblings, 1 reply; 3+ messages in thread
From: Eisenhut, Daniel (MED) @ 2004-05-26 21:21 UTC (permalink / raw)
  To: 'linux-mtd@lists.infradead.org'

To list,

I've successfully setup MTD devices for our NOR flash chips and
everything is working great from userspace.  But I have a need to access
the NOR flash from within kernelspace, such as in a /proc entry.

What is the best way to access the flash from within the kernel?  The
only way I've be able to so far is to just dereference a pointer
pointing to the flash address.  But this creates two issues (that I know
about):

1. A race condition between my proc entry that reads the flash and
another process using the MTD device.

2. The MTD device does not always leave the flash chip in read mode.

Is there anything setup in the current MTD code to allow access from
within the kernel?

Thanks...
Dan

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

end of thread, other threads:[~2004-05-26 23:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-26 21:21 Accessing an MTD device from kernel space Eisenhut, Daniel (MED)
2004-05-26 21:26 ` Thomas Gleixner
2004-05-26 23:38   ` Dan Eisenhut

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