STRUCT QRTR_HDR_V1(9)
π struct qrtr_hdr_v1(9) β like, the Kernel API Manual, but make it cute β¨
Okay bestie, buckle up π β today's main character is struct qrtr_hdr_v1, straight out of the Kernel API Manual, and she is iconic.
πΈ NAME πΈ
struct qrtr_hdr_v1 β the (I|R)PCrouter packet header, version 1. yes, "PCrouter", and yes, the (I|R) is doing exactly what you think it's doing π«
β¨ SYNOPSIS β¨
Here's the whole glow-up, verbatim, no cap:
struct qrtr_hdr_v1 {
__le32 version;
__le32 type;
__le32 src_node_id;
__le32 src_port_id;
__le32 confirm_rx;
__le32 size;
__le32 dst_node_id;
__le32 dst_port_id;
};
Eight __le32 fields. That's it. That's the whole struct. She's lowkey minimalist and I respect it π«Ά
π MEMBERS π
Every field, one by one, in order, because we do not skip β¨
versionβ the protocol version. which version of the vibe we're on πtypeβ the packet type; it's one ofQRTR_TYPE_*. pick your fighter πsrc_node_idβ the source node. where it's coming from π¦src_port_idβ the source port. the specific door on that node πͺconfirm_rxβ a boolean; it's literally just "should a resume-tx packet be send in reply?" β yes,send, that's the original wording, I don't make the rules πsizeβ length of the packet, and heads up: this is excluding this header π§ so don't be out here counting the header too, that's a whole different number πdst_node_idβ the destination node. where it's going πdst_port_idβ the destination port. the door on the other end π
π₯ SEE ALSO π₯
Go snoop the Kernel file ./net/qrtr/af_qrtr.c and then go be obsessed with all of these besties:
struct qrtr_hdr_v2(9)struct qrtr_node(9)struct qrtr_tx_flow(9)qrtr_tx_resume(9)qrtr_tx_wait(9)qrtr_tx_flow_failed(9)qrtr_endpoint_post(9)qrtr_alloc_ctrl_packet(9)qrtr_endpoint_register(9)qrtr_endpoint_unregister(9)
fr fr, read them in order, it's giving syllabus energy πβ¨
And that's the tea β β this page lives under ./net/qrtr, dated October 2026, and it's struct qrtr_hdr_v1(9) all the way down. mwah π slay, bye π¦π
π¦ 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