ubi_eba_read_leb_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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