leb_write_lock(9)
πΈ NAME πΈ
okay so bestie, welcome to leb_write_lock(9) from the Kernel API Manual β yes, that's the manual name, and this whole page is literally about locking a logical eraseblock for writing. periodt. π
leb_write_lock β lock logical eraseblock for writing.
β¨ SYNOPSIS β¨
int leb_write_lock (struct ubi_device *ubi , int vol_id , int lnum );
π ARGUMENTS π
ubiβ UBI device description object. the whole device situation π«Άvol_idβ volume ID. which volume we're talking about β¨lnumβ logical eraseblock number. the exact LEB bestie π
π DESCRIPTION π
So this function locks a logical eraseblock for writing. That's the assignment, and it ate. π₯
It returns zero in case of success, and a negative error code in case of failure. no cap β zero is the slay outcome, negative error code is the "oop, something went sideways" outcome. π
π¦ SEE ALSO π¦
- Kernel file:
./drivers/mtd/ubi/eba.c 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_trylock(9)leb_write_unlock(9)ubi_eba_is_mapped(9)ubi_eba_unmap_leb(9)check_mapping(9)ubi_eba_read_leb(9)ubi_eba_read_leb_sg(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)
okay bye bestie π«Ά this page's source/version is ./drivers/mtd/ubi, it's dated October 2026, and the title is leb_write_lock(9). stay locked and stay iconic πβ¨
π¦ 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