drbd_bitmap_io(9)
π drbd_bitmap_io(9) β the Kernel API Manual page you didn't know you needed β¨
okay so bestie, sit down, grab a strawberry π, because we're about to talk about drbd_bitmap_io(9) β yes it's a kernel function, yes it's from the Kernel API Manual, and yes it's kind of iconic in a "does one very specific job" way π
πΈ NAME πΈ
drbd_bitmap_io β does an IO operation on the whole bitmap. that's it, that's the vibe. whole bitmap, one IO op, no cap π
π¦ SYNOPSIS π¦
int drbd_bitmap_io (struct drbd_device *device , int (*io_fn)(struct
drbd_device *, struct drbd_peer_device *) , char *why , enum bm_flag
flags , struct drbd_peer_device *peer_device );
like look at this signature, it's so extra and we love that for it π
π ARGUMENTS π
deviceβ the DRBD device. your main character β¨io_fnβ the IO callback, the little function that gets called when bitmap IO is actually possible. it's giving "waiting for its moment" π§whyβ descriptive text explaining the reason for doing the IO. literally just the receipts of why we're here πflagsβ bitmap flags. π©peer_deviceβ the peer DRBD device. the plus-one todeviceπ«Ά
π₯ DESCRIPTION π₯
so what it does: it freezes application IO while the actual IO operations run. yes, freezes. like hitting pause on a Netflix binge π
β οΈ okay this is the important part, bestie β this function MAY NOT be called from worker context. not optional, not "probably fine", not "just this once". periodt. π
π SEE ALSO π
the whole friend group, in the kernel file ./drivers/block/drbd/drbd_main.c:
tl_release(9)_tl_restart(9)tl_clear(9)tl_abort_disk_io(9)drbd_thread_current_set_cpu(9)drbd_send_current_state(9)drbd_send_state(9)_drbd_send_ack(9)drbd_send_ack(9)drbd_md_sync(9)drbd_md_read(9)drbd_md_mark_dirty(9)drbd_uuid_new_current(9)drbd_bmio_set_n_write(9)drbd_bmio_clear_n_write(9)drbd_queue_bitmap_io(9)drbd_wait_misc(9)
go read them, iykyk ππ
β the cute sign-off β
this little icon lives in ./drivers/block/drbd, dated October 2026, and it's titled drbd_bitmap_io(9) β so yeah, that's the whole page. slay, stay hydrated, and don't call it from worker context bestie πβ¨π
π¦ 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