bio_full(9)
π bio_full(9) β a Kernel API Manual moment π
okay so bestie, we're in the kernel API manual, section 9, and today's main character is bio_full π
β¨ NAME β¨
bio_full β check if the bio is full π«§
π¦ SYNOPSIS π¦
bool bio_full (struct bio *bio , unsigned len );
like, that's the whole vibe. one call, one bool, no cap β¨
π ARGUMENTS π
bioβ the bio you wanna check, bestie π that's the one we're vibe-checkinglenβ the length of one segment that's about to be added π like, the size of the thing you're trying to sneak in
πΈ DESCRIPTION πΈ
okay so here's the tea β β bio_full returns true if the bio is full and one segment with len bytes can't be added to the bio. otherwise it returns false. that's it, that's the whole function, and honestly? iconic. short, sweet, does exactly one job π
so basically: you ask "can I fit len more bytes in here?" and it tells you yes (false) or no (true). no guessing, no drama, just a bool π¦
π₯ SEE ALSO π₯
Kernel file ./block/bio.c β and literally the entire bio friend group, fr fr π
bio_reset(9)bio_reuse(9)bio_chain(9)bio_chain_and_submit(9)bio_alloc_bioset(9)bio_kmalloc(9)bio_truncate(9)guard_bio_eod(9)bio_put(9)bio_alloc_clone(9)bio_init_clone(9)__bio_add_page(9)bio_add_virt_nofail(9)bio_add_page(9)bio_add_folio(9)bio_add_vmalloc_chunk(9)bio_add_vmalloc(9)bio_iov_iter_get_pages(9)bio_iov_iter_bounce(9)bio_iov_iter_unbounce(9)bio_await(9)submit_bio_wait(9)bdev_rw_virt(9)bio_copy_data(9)bio_endio(9)bio_split(9)bio_trim(9)bioset_init(9)
like, that's a whole friend group and bio_full is the one who tells you if there's room in the group chat ππ«Ά
k bye bestie, this page lives in ./block, it's the October 2026 edition of the Kernel API Manual, and it's section 9 β go check those bios, 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