ubifs_start_scan(9)
β¨ ubifs_start_scan(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's a whole function from the UBIFS world and it's literally the opening act of a scan, iykyk π
πΈ NAME πΈ
ubifs_start_scan β bestie, this creates the LEB scanning information at the start of a scan. that's the whole vibe. β¨
π¦ SYNOPSIS π¦
struct ubifs_scan_leb * ubifs_start_scan (const struct ubifs_info *c ,
int lnum , int offs , void *sbuf );
like, look at it. iconic signature. no cap. π
π ARGUMENTS π
cβ the UBIFS file-system description object ποΈ like, the whole personality of the filesystem lives herelnumβ the logical eraseblock number, aka which LEB we're pulling up on π’offsβ the offset to start at (usually zero, fr fr, most of the time it's just0and we move on) πsbufβ the scan buffer, and listen: it must bec->leb_sizeβ not vibes-based, it's a hard requirement, don't come at me with a smaller buffer π
π DESCRIPTION π
so the way this works: this function returns the scanned information on success β¨ and a negative error code on failure π. that's it, that's the deal. slay.
ngl, negative error code on failure is not a drill β check your return value, bestie, she's telling you something π
π SEE ALSO π
- Kernel file
./fs/ubifs/scan.c scan_padding_bytes(9)ubifs_scan_a_node(9)ubifs_end_scan(9)ubifs_add_snod(9)ubifs_scanned_corruption(9)ubifs_scan(9)ubifs_scan_destroy(9)
like, the whole scan friend group π«Ά go read them too, they all ate π
and that's the page, bestie!! π sourced from ./fs/ubifs, dated October 2026 β go forth and scan responsibly, mwah ππ§ββοΈ
π¦ 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