mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
[MTD] Document erase interface.
Document mtd erase interface. Signed-off-by: Jörn Engel <joern@logfs.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
5041f1f1b7
commit
b38178ee71
1 changed files with 7 additions and 0 deletions
|
@ -133,6 +133,13 @@ struct mtd_info {
|
||||||
int numeraseregions;
|
int numeraseregions;
|
||||||
struct mtd_erase_region_info *eraseregions;
|
struct mtd_erase_region_info *eraseregions;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Erase is an asynchronous operation. Device drivers are supposed
|
||||||
|
* to call instr->callback() whenever the operation completes, even
|
||||||
|
* if it completes with a failure.
|
||||||
|
* Callers are supposed to pass a callback function and wait for it
|
||||||
|
* to be called before writing to the block.
|
||||||
|
*/
|
||||||
int (*erase) (struct mtd_info *mtd, struct erase_info *instr);
|
int (*erase) (struct mtd_info *mtd, struct erase_info *instr);
|
||||||
|
|
||||||
/* This stuff for eXecute-In-Place */
|
/* This stuff for eXecute-In-Place */
|
||||||
|
|
Loading…
Reference in a new issue