ubi_more_leb_change_data(9)
π ubi_more_leb_change_data(9) β like, the Kernel API Manual page, bestie
okay so this is ubi_more_leb_change_data, straight out of the Kernel API Manual β¨ and it's genuinely one of those little functions that carries the whole "atomic LEB change" vibe on its back. no cap.
πΈ NAME πΈ
ubi_more_leb_change_data β accept more data for atomic LEB change. that's it. that's the whole job. she takes data. she keeps taking data. π
π SYNOPSIS π
int ubi_more_leb_change_data (struct ubi_device *ubi , struct ubi_volume
*vol , const void __user *buf , int count );
literally the whole signature, character for character, because we do not play about prototypes around here. π«Ά
β¨ ARGUMENTS β¨
ubiβ the UBI device description object. iconic. she's the device, she's the moment.volβ the volume description object. the volume in question, the main character of this whole operation.bufβ the write data, and yes bestie it's a user-space memory buffer (const void __user *). respect the__user, please. πcountβ how much bytes to write. how much bytes. that's the manpage's phrasing and we're keeping it fr fr.
π DESCRIPTION π
okay so listen. this function accepts more data to the volume which is currently under the "atomic LEB change" operation. she's not starting anything, she's continuing. it's giving "part two of a three-part saga." π
and the best part? it may be called an arbitrary number of times until all data arrives. so spam her. she can take it. she's built for it. π₯
the returns are:
0in case of success β cute, no notes β¨- the number of bytes written during the last call if the whole
"atomic LEB change"operation has been successfully finished β like, the grand finale, the confetti moment π - a negative error code in case of failure β π and that's all it says, so don't come for me about which ones, i'm just the messenger π
no cap: failure means a negative error code, and that's a real "go check your buffer" moment. handle it. don't ignore it. π¨
π¦ SEE ALSO π¦
so you wanna go deeper? valid. here's the whole friend group, all hanging out in the Kernel file ./drivers/mtd/ubi/upd.c:
set_update_marker(9)clear_update_marker(9)ubi_start_update(9)ubi_start_leb_change(9)write_leb(9)ubi_more_update_data(9)
go read them, they're literally all connected, iykyk π
π sign-off π
that's the whole page, bestie β sourced from ./drivers/mtd/ubi, dated October 2026, and titled ubi_more_leb_change_data(9) because duh. go forth and write bytes. πβ¨π emoji kisses, 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