kapi.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) kapi.c (b6baa9962648aee4a22c8b6a31ce69585b03d173)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (c) International Business Machines Corp., 2006
4 *
5 * Author: Artem Bityutskiy (Битюцкий Артём)
6 */
7
8/* This file mostly implements UBI kernel API functions */

--- 436 unchanged lines hidden (view full) ---

445}
446EXPORT_SYMBOL_GPL(ubi_leb_read);
447
448
449/**
450 * ubi_leb_read_sg - read data into a scatter gather list.
451 * @desc: volume descriptor
452 * @lnum: logical eraseblock number to read from
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (c) International Business Machines Corp., 2006
4 *
5 * Author: Artem Bityutskiy (Битюцкий Артём)
6 */
7
8/* This file mostly implements UBI kernel API functions */

--- 436 unchanged lines hidden (view full) ---

445}
446EXPORT_SYMBOL_GPL(ubi_leb_read);
447
448
449/**
450 * ubi_leb_read_sg - read data into a scatter gather list.
451 * @desc: volume descriptor
452 * @lnum: logical eraseblock number to read from
453 * @buf: buffer where to store the read data
453 * @sgl: UBI scatter gather list to store the read data
454 * @offset: offset within the logical eraseblock to read from
455 * @len: how many bytes to read
456 * @check: whether UBI has to check the read data's CRC or not.
457 *
458 * This function works exactly like ubi_leb_read_sg(). But instead of
459 * storing the read data into a buffer it writes to an UBI scatter gather
460 * list.
461 */

--- 393 unchanged lines hidden ---
454 * @offset: offset within the logical eraseblock to read from
455 * @len: how many bytes to read
456 * @check: whether UBI has to check the read data's CRC or not.
457 *
458 * This function works exactly like ubi_leb_read_sg(). But instead of
459 * storing the read data into a buffer it writes to an UBI scatter gather
460 * list.
461 */

--- 393 unchanged lines hidden ---