STRUCT UBI_SGL(9)
β¨ struct ubi_sgl(9) β¨
okay bestie, this one's from the Kernel API Manual, and it's literally the glow-up wrapper your scatter list has been waiting for π
πΈ NAME πΈ
struct ubi_sgl β the UBI scatter gather list data structure, and yes she has a whole personality π
π¦ SYNOPSIS π¦
struct ubi_sgl {
int list_pos;
int page_pos;
struct scatterlist sg[UBI_MAX_SG_COUNT];
};
like, that's the whole vibe. three members. no notes. π
π Members π
list_posβ your current position insg[]π think of it as the little "you are here" dot on the mall mappage_posβ your current position insg[list_pos]π― yeah, it's a whole second layer of "where am I", she contains multitudessgβ the scatter gather list itself, the main character, the actual goods π
π Description π
so ubi_sgl is a cute little wrapper around a scatter list, and what it does is keep track of where you are β both the current position in the list (list_pos) and the current list item (page_pos) π«Ά
and the reason it does that? so it can be used across multiple ubi_leb_read_sg calls β¨ like, it remembers where it left off between calls so you don't have to. it's giving personal assistant energy, honestly. no cap. π
π SEE ALSO π
- Kernel file
./include/linux/mtd/ubi.hπ struct ubi_volume_info(9)ubi_sgl_init(9)struct ubi_device_info(9)
basically the whole friend group, go say hi π
fr fr go read ubi_sgl_init(9) before you start poking at the fields manually, iykyk π
and that's the page!! she lives in ./include/linux/mtd, dated October 2026, and honestly? iconic. slay. periodt. π§ππΈ
π¦ 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