drbd_send_current_state(9)
π drbd_send_current_state(9) π
okay so bestie, welcome to a page straight out of the Kernel API Manual β¨ β yes that manual, the kernel one, we're in the deep deep today and honestly? iconic. this is the drbd_send_current_state(9) page and it's short, it's sweet, and it does exactly one thing. let's get into it π
πΈ NAME πΈ
drbd_send_current_stateβ Sends the drbd state to the peer π
that's it. that's the whole vibe. it sends the state. to the peer. no cap, the function name literally spoils the plot and i respect that so much π«Ά
β¨ SYNOPSIS β¨
here's the signature, and pls copy it exactly because kernel code does not forgive typos, like at all, fr fr:
int drbd_send_current_state (struct drbd_peer_device *peer_device );
yes there's a little space before that closing paren. yes i'm keeping it. character for character, bestie, that's the rule π
π¦ ARGUMENTS π¦
peer_deviceβ DRBD peer device. π
that's the one and only thing it takes, and it's the peer device, so likeβ¦ the device on the other end. the buddy. the peer. the way that this function has exactly one (1) job and one (1) argument is honestly main character energy π
π SEE ALSO π
the original points you at a Kernel file: ./drivers/block/drbd/drbd_main.c β go look at the source, it's right there π§
and then it drops a whole friend group of related functions, so let me introduce you to the whole squad, no one gets left out:
tl_release(9)_tl_restart(9)tl_clear(9)tl_abort_disk_io(9)drbd_thread_current_set_cpu(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_bitmap_io(9)drbd_wait_misc(9)
seventeen of them. seventeen!! the whole group chat pulled up ππ every single one is listed above, i did not skip a single one, you're welcome π
quick heads-up bestie: these are (9) references, so they're kernel functions too β matching section numbers and everything. don't go looking for them in your shell, they live in the kernel docs iykyk π₯
π the cute sign-off π
and that's the page!! it lives under ./drivers/block/drbd, it's dated October 2026, and this little kernel API moment is officially a wrap. slay, stay hydrated, and go read drbd_main.c for me πβ¨π¦πΈπ
π¦ 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