qrtr_alloc_ctrl_packet(9)
π qrtr_alloc_ctrl_packet(9) π
okay so bestie, welcome to the Kernel API Manual page for qrtr_alloc_ctrl_packet β it's giving "tiny function, very important job" and honestly we're obsessed π
β¨ NAME β¨
qrtr_alloc_ctrl_packet β allocate a control packet skb, that's the whole vibe π
π¦ SYNOPSIS π¦
struct sk_buff * qrtr_alloc_ctrl_packet (struct qrtr_ctrl_pkt **pkt ,
gfp_t flags );
πΈ ARGUMENTS πΈ
pktβ a reference to aqrtr_ctrl_pktpointer, i.e. a pointer-to-a-pointer, yes we love a double-pointer moment πflagsβ the type of memory to allocate (thegfp_tgossip, basically) β¨
π DESCRIPTION π
So here's the tea: this bad boy returns a newly allocated sk_buff, or NULL on failure π β like, no packet for you, sorry bestie.
What it actually does? It allocates a sk_buff that's large enough to carry a qrtr_ctrl_pkt, and on success it hands you back a reference to that control packet in pkt. so pkt comes back pointing at the good stuff π«Ά slay.
ngl, if it returns NULL, that's your failure signal β check it, don't just yolo ahead π
π₯ SEE ALSO π₯
- Kernel file
./net/qrtr/af_qrtr.c struct qrtr_hdr_v1(9)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_endpoint_register(9)qrtr_endpoint_unregister(9)
all the obligatory bestie links, go read them, iykyk π§
mwah π this page came from ./net/qrtr, dated October 2026, and yes it's still called qrtr_alloc_ctrl_packet(9) β periodt πβ
π¦ 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