leb_read_unlock(9)
π leb_read_unlock(9) β the "okay you can stop reading now" unlock π
hi bestie, welcome to the Kernel API Manual π we're literally in section 9 today and the whole vibe is releasing a lock on a logical eraseblock. no cap, that's the entire arc of this episode.
β¨ NAME β¨
leb_read_unlock β unlock logical eraseblock. that's it, that's the plot π«Ά
π¦ SYNOPSIS π¦
void leb_read_unlock (struct ubi_device *ubi , int vol_id , int lnum );
yes she takes three little args and returns void β she gives nothing back because she already gave everything π
πΈ ARGUMENTS πΈ
okay so here's the cast of characters, they're all icons honestly:
ubiβ the UBI device description object π this is the main character device we're working withvol_idβ volume ID. which volume bestie, spill πlnumβ logical eraseblock number. the specific LEB we're unlocking, periodt
π SEE ALSO π
this is the extended universe fr fr β so many crossovers i can't even. all of these live in the 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_write_lock(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)
ngl leb_read_lock(9) is literally her gf, they come as a set, do not separate them π
and that's the whole page bestie, go forth and unlock responsibly π
source: ./drivers/mtd/ubi π¦ version date: October 2026 β¨ mwah, bye, love u, see u in the next manpage ππ
π¦ 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