ENUM RNBD_IO_FLAGS(9)
π¦ enum rnbd_io_flags(9) π¦
okay bestie, welcome to the Kernel API Manual β¨ this page is literally all about enum rnbd_io_flags, and no cap, it's the whole vibe of "RNBD request types from rq_flag_bits" β that's the NAME energy right there π
so like, every request type and flag the RNBD stack cares about? it's giving main character energy, fr fr.
β¨ SYNOPSIS β¨
okay so here's the whole enum, copied exactly, do NOT come for me about formatting, this is canon:
enum rnbd_io_flags {
RNBD_OP_READ ,
RNBD_OP_WRITE ,
RNBD_OP_FLUSH ,
RNBD_OP_DISCARD ,
RNBD_OP_SECURE_ERASE ,
RNBD_OP_WRITE_ZEROES ,
RNBD_F_SYNC ,
RNBD_F_FUA ,
RNBD_F_PREFLUSH ,
RNBD_F_NOUNMAP
};
like, that's the entire lineup π«Ά and yes there's a blank line before the closing brace, that's just how it is, she's quirky π
π Constants π
okay now for the part you actually came for, the constants themselves, one by one, no skipping, i would never π
RNBD_OP_READβ reads sectors from the device π like, literally pulling data off the thing.RNBD_OP_WRITEβ writes sectors to the device βοΈ the classic, the icon, the legend.RNBD_OP_FLUSHβ flushes the volatile write cache π½ (not literally but also kind of literally). volatile data? gotta go, bestie.RNBD_OP_DISCARDβ discards sectors ποΈ bye bye blocks, you won't be missed.RNBD_OP_SECURE_ERASEβ securely erases sectors π and yes the "securely" is doing heavy lifting there, it's not just a regular delete, it's a secure one, periodt.RNBD_OP_WRITE_ZEROESβ writes zeroes to sectors β turning sectors into zeroes, that's the whole job, and honestly? she ate.RNBD_F_SYNCβ the request is sync (sync write or read) π like, it waits. it's not doing the chaotic async thing.RNBD_F_FUAβ forced unit access π₯ that's what FUA stands for, and that's the entire description, don't ask me for more, i only report what the page says π«‘RNBD_F_PREFLUSHβ this one is the flag for a cache flush π§Ό request for cache flush, exactly, i'm not adding anything, i would never invent behaviour.RNBD_F_NOUNMAPβ do not free blocks when zeroing π« lowkey the most important one to get right, because it's a "do NOT" and you know how those go.
π reminder that these are flags and op codes for RNBD requests β the page does NOT tell me any extra behaviour beyond the one-liners above, so i'm not out here guessing. iykyk.
π SEE ALSO π
okay the little family of related pages, all from the kernel file ./drivers/block/rnbd/rnbd-proto.h:
enum rnbd_msg_type(9)struct rnbd_msg_hdr(9)struct rnbd_msg_sess_info(9)struct rnbd_msg_sess_info_rsp(9)struct rnbd_msg_open(9)struct rnbd_msg_close(9)struct rnbd_msg_open_rsp(9)struct rnbd_msg_io(9)
like, go read those too, they're all in the same friend group π
and that's the page, bestie! π this came to you from ./drivers/block/rnbd, dated October 2026, and it's the enum rnbd_io_flags(9) page you just read β slay, bye, go read your kernel headers ππ¦
π¦ 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