STRUCT MOX_RWTM(9)
π struct mox_rwtm(9) π
okay bestie, welcome to the struct mox_rwtm(9) page of the Kernel API Manual β this is where the driver keeps all its private little secrets, no cap. It's the driver private data structure, and honestly? It's carrying the whole vibe. π«Ά
β¨ NAME β¨
struct mox_rwtm β driver private data structure. that's it, that's the whole thing, and yet she's iconic. π
π¦ SYNOPSIS π¦
struct mox_rwtm {
struct mbox_client mbox_client;
struct mbox_chan *mbox;
struct hwrng hwrng;
struct armada_37xx_rwtm_rx_msg reply;
void *buf;
dma_addr_t buf_phys;
struct mutex busy;
struct completion cmd_done;
bool has_board_info;
u64 serial_number;
int board_version, ram_size;
u8 mac_address1[ETH_ALEN], mac_address2[ETH_ALEN];
#ifdef CONFIG_TURRIS_MOX_RWTM_KEYCTL;
u8 pubkey[MOX_ECC_PUBKEY_LEN];
#endif;
};
look at her. a whole struct. main character energy fr fr. π₯
πΈ Members πΈ
okay so now we go field by field, don't skip, because every single one of these matters. π
mbox_clientβ the rWTM mailbox client. she's the one who shows up to the mailbox, iykyk. πmboxβ the rWTM mailbox channel. this is the actual mailbox situation.hwrngβ the RNG driver structure. randomness, but make it kernel. β¨replyβ the last mailbox reply, filled in by the receive callback. she remembers everything. πbufβ the DMA buffer.buf_physβ the physical address of that DMA buffer. yes, the physical one, not the other one. πbusyβ a mutex protecting mailbox command execution. one at a time, besties, we are not overlapping. π«cmd_doneβ the command-done completion. she's the "we're so back" signal. πhas_board_infoβ aboolfor whether board information is present. is she there or not? vibe check. π΅οΈserial_numberβ the serial number of the device, au64. her social security number basically. πboard_versionβ board version / revision of the device. anint, along withβ¦ram_sizeβ β¦RAM size of the device. these two share a line and honestly? power couple. πmac_address1β the first MAC address of the device,u8 mac_address1[ETH_ALEN].mac_address2β the second MAC address of the device,u8 mac_address2[ETH_ALEN]. yes there are two, slay. π¦pubkeyβ the board ECDSA public key,u8 pubkey[MOX_ECC_PUBKEY_LEN], and note she only exists whenCONFIG_TURRIS_MOX_RWTM_KEYCTLis defined. conditional queen. π
π§ SEE ALSO π§
- Kernel file:
./drivers/firmware/turris-mox-rwtm.cβ go read her, she's the whole source of truth. π
ngl, if you're poking at this struct you're already kind of a legend. go be great. β
π that's the page, bestie π β brought to you from ./drivers/firmware, dated October 2026, and yes that's the source/version + date sign-off, we simply had to mention it. ππ·
π¦ 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