ubi_eba_read_leb_sg(9)
π ubi_eba_read_leb_sg(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for ubi_eba_read_leb_sg(9), and yes it's a kernel function, yes it ends in (9), no we are not scared of it π
β¨ NAME β¨
ubi_eba_read_leb_sg β read data into a scatter gather list. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
int ubi_eba_read_leb_sg (struct ubi_device *ubi , struct ubi_volume *vol
, struct ubi_sgl *sgl , int lnum , int offset , int len , int check );
like look at that signature. seven args. she's got range π
πΈ ARGUMENTS πΈ
ubiβ the UBI device description object. the whole device, the big picture, main character energy πvolβ the volume description object. which volume we're messing with πsglβ the UBI scatter gather list where the read data goes. this is the destination, this is where the goods land π«Άlnumβ logical eraseblock number. which LEB we're reading from, iykyk β¨offsetβ offset from where to read. how far into it we start digging π₯lenβ how many bytes to read. the exact amount, no cap πcheckβ data CRC check flag. like, do we verify or do we just vibe π
π DESCRIPTION π
okay so here's the tea: this function works exactly like ubi_eba_read_leb. literally exactly, same energy, same behaviour, no notes β¨
the one glow-up? instead of storing the read data into a buffer, it writes to an UBI scatter gather list π that's the whole difference. buffer? no. scatter gather list? yes bestie, we're fancy now π
so if you already know ubi_eba_read_leb, you already know her. she just has a different destination π¦
β SEE ALSO β
the whole friend group, fr fr β kernel file ./drivers/mtd/ubi/eba.c plus:
struct ubi_eba_entry(9)struct ubi_eba_table(9)ubi_next_sqnum(9)ubi_get_compat(9)ubi_eba_get_ldesc(9)ubi_eba_create_table(9)ubi_eba_destroy_table(9)ubi_eba_copy_table(9)ubi_eba_replace_table(9)ltree_lookup(9)ltree_add_entry(9)leb_read_lock(9)leb_read_unlock(9)leb_write_lock(9)leb_write_trylock(9)leb_write_unlock(9)ubi_eba_is_mapped(9)ubi_eba_unmap_leb(9)check_mapping(9)ubi_eba_read_leb(9)try_recover_peb(9)recover_peb(9)try_write_vid_and_data(9)ubi_eba_write_leb(9)ubi_eba_write_leb_st(9)is_error_sane(9)ubi_eba_copy_leb(9)print_rsvd_warning(9)self_check_eba(9)ubi_eba_init(9)
like. that's the whole roster. read them, love them, cite them in your bug report π«Ά
quick reminder bestie: every literal β every flag, path, name and (9) β stayed exactly as written. the vibe is new, the facts are untouched π
and that's a wrap!! this page lives in ./drivers/mtd/ubi and it's dated October 2026 β so like, future icon behaviour honestly π mwah, go read some eraseblocks, ily, bye ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms