bio_put(9)
π bio_put β release a reference to a bio
okay so real talk, bestie, this is bio_put(9) from the Kernel API Manual β yes the whole kernel API manual, we're literally in the big leagues now π
β¨ SYNOPSIS β¨
void bio_put (struct bio *bio );
no cap, that's the whole signature. void return β she gives nothing back, she just does the thing π
πΈ ARGUMENTS πΈ
bioβ the bio you're releasing a reference to. that's her. that's the one. π¦
π DESCRIPTION π
okay so picture this: you've got a reference to a struct bio, and you need to put it back. bio_put is literally the "put the reference back" girlie β¨
The bio you're putting can be one you got with bio_alloc, bio_get, or bio_clone_* β any of those, she doesn't judge π
and here's the main character moment: the last put of a bio will free it. π₯ like, the final bio_put is the one that actually releases the memory. so bestie, mind your reference counts β the last one out turns off the lights π
π SEE ALSO π
Kernel file ./block/bio.c β and like, the whole extended friend group:
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_alloc_clone(9)bio_init_clone(9)bio_full(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 the whole group chat. go say hi π«Ά
and that's the tea, bestie π this lil page lives in ./block, dated October 2026, and it's serving kernel energy from start to finish. mwah π stay hydrated and always drop your last reference ππ
π¦ 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