io.c (3d7a96f5a485b7d06c2379f343d7312af89ec9e2) | io.c (025dfdafe77f20b3890981a394774baab7b9c827) |
---|---|
1/* 2 * Copyright (c) International Business Machines Corp., 2006 3 * Copyright (c) Nokia Corporation, 2006, 2007 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 451 unchanged lines hidden (view full) --- 460 * ubi_io_sync_erase - synchronously erase a physical eraseblock. 461 * @ubi: UBI device description object 462 * @pnum: physical eraseblock number to erase 463 * @torture: if this physical eraseblock has to be tortured 464 * 465 * This function synchronously erases physical eraseblock @pnum. If @torture 466 * flag is not zero, the physical eraseblock is checked by means of writing 467 * different patterns to it and reading them back. If the torturing is enabled, | 1/* 2 * Copyright (c) International Business Machines Corp., 2006 3 * Copyright (c) Nokia Corporation, 2006, 2007 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 451 unchanged lines hidden (view full) --- 460 * ubi_io_sync_erase - synchronously erase a physical eraseblock. 461 * @ubi: UBI device description object 462 * @pnum: physical eraseblock number to erase 463 * @torture: if this physical eraseblock has to be tortured 464 * 465 * This function synchronously erases physical eraseblock @pnum. If @torture 466 * flag is not zero, the physical eraseblock is checked by means of writing 467 * different patterns to it and reading them back. If the torturing is enabled, |
468 * the physical eraseblock is erased more then once. | 468 * the physical eraseblock is erased more than once. |
469 * 470 * This function returns the number of erasures made in case of success, %-EIO 471 * if the erasure failed or the torturing test failed, and other negative error 472 * codes in case of other errors. Note, %-EIO means that the physical 473 * eraseblock is bad. 474 */ 475int ubi_io_sync_erase(struct ubi_device *ubi, int pnum, int torture) 476{ --- 807 unchanged lines hidden --- | 469 * 470 * This function returns the number of erasures made in case of success, %-EIO 471 * if the erasure failed or the torturing test failed, and other negative error 472 * codes in case of other errors. Note, %-EIO means that the physical 473 * eraseblock is bad. 474 */ 475int ubi_io_sync_erase(struct ubi_device *ubi, int pnum, int torture) 476{ --- 807 unchanged lines hidden --- |