From: Frederic Gobry <frederic.gobry@smartdata.ch>
To: linux-mtd@lists.infradead.org
Subject: Re: mmap question
Date: Mon, 15 Jul 2002 09:41:00 +0200 [thread overview]
Message-ID: <20020715074100.GA4582@rhin> (raw)
In-Reply-To: <10934.1026487279@redhat.com> <20020712150813.GA19718@wohnheim.fh-wedel.de>
[-- Attachment #1: Type: text/plain, Size: 1846 bytes --]
Jörn said:
> BTW: Did you already try to mmap /dev/mtd* or /dev/mtdblock* ?
Sure, but neither does implement the mmap method.
> One possibility to order the pizza is Joeys:
> http://www.joeys.de/joeys/65/index.htm
Gargl, I'll need to find my french/german dictionnary first (I'm in
the french speaking part of switzerland !) Should I drop you an email
before, or is a pizza always welcome ?
David said:
> Er, ditch the crap 'point' semantics and implement something sane for
> mmapping, because that's about the only sane use of point() anyway.
Ok. What was the idea of unpoint, BTW ?
> That's not sufficient. If you let the erase or write operations happen
> while it's mapped, what prevents your app from reading from the flash
> _during_ the erase/write operation? You need to either prevent the erases/
> writes from happening while the flash is mapped (bad) or arrange for the
> pages mapped to userspace to be marked invalid during the erase/write
> operation, and faults on those pages have to wait until the flash is back
> in read mode again.
I admit I looked at it from the narrow point of view of my single
process which is safe by construction... I do agree that the only
acceptable solution is the second (disallow page access during write /
erase).
> We want some kind of mtd_remap() call which has its own struct vm_operations,
> with a nopage() which sets a flag in the state of the underlying mtd_info,
> and ensure that the page can be found again and made invalid before any
> other MTD operations. With the rmap VM the latter is quite simple, without
> it we'd need to keep track of all vmas ourselves.
I'm quite a newcomer to VM management (my only experience comes from
"Linux Device Drivers" and what I tested for this driver...). What is
the rmap VM ?
Frédéric
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2002-07-15 7:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-04 13:22 mmap question Frederic Gobry
2002-07-01 13:14 ` Frederic Gobry
2002-07-11 16:19 ` Frederic Gobry
2002-07-11 19:15 ` Jörn Engel
2002-07-12 7:57 ` Frederic Gobry
2002-07-12 15:08 ` Jörn Engel
2002-07-15 7:41 ` Frederic Gobry [this message]
2002-07-12 15:21 ` David Woodhouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020715074100.GA4582@rhin \
--to=frederic.gobry@smartdata.ch \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox