pdc_rx_list_sg_add(9)
π pdc_rx_list_sg_add(9) β the Kernel API Manual glow-up π
okay so bestie, we're diving into pdc_rx_list_sg_add(9) from the section 9 Kernel API Manual, and honestly? she's a little workhorse and she deserves her flowers. πΈ Let's get into it.
β¨ NAME β¨
pdc_rx_list_sg_add β Add the buffers in a scatterlist to the receive descriptors for a given SPU. The caller must have already DMA mapped the scatterlist.
yes bestie, already DMA mapped. That part is on you, not on her. π
π¦ SYNOPSIS π¦
int pdc_rx_list_sg_add (struct pdc_state *pdcs , struct scatterlist *sg
);
π ARGUMENTS π
pdcsβ the PDC state for the SPU that will process this request. that's her whole personality, lowkey π«Άsgβ the scatterlist whose buffers get added to the receive ring. literally the buffers in question β¨
π DESCRIPTION π
okay so here's the vibe: if a receive buffer in the scatterlist is larger than PDC_DMA_BUF_MAX, then multiple receive descriptors get written β each one holding a buffer <= PDC_DMA_BUF_MAX. so she just keeps splitting until everything fits, no cap. pieces stay at or under the max, periodt π
π₯ RETURN π₯
PDC_SUCCESSif successful π< 0otherwise β e.g. when the receive ring is full π
fair warning bestie: a negative return is not a vibe. check your ring space. π
π SEE ALSO π
Kernel file ./drivers/mailbox/bcm-pdc-mailbox.c, plus the whole friend group:
pdc_setup_debugfs(9)pdc_build_rxd(9)pdc_build_txd(9)pdc_receive_one(9)pdc_receive(9)pdc_tx_list_sg_add(9)pdc_tx_list_final(9)pdc_rx_list_init(9)pdc_irq_handler(9)pdc_work_cb(9)pdc_ring_init(9)pdc_desc_count(9)pdc_rings_full(9)pdc_last_tx_done(9)pdc_send_data(9)pdc_hw_init(9)pdc_hw_disable(9)pdc_rx_buf_pool_create(9)pdc_interrupts_init(9)pdc_mb_init(9)pdc_dt_read(9)pdc_probe(9)
go read them, they're all iconic in their own way π§
and that's the page, bestie! it lives in ./drivers/mailbox, it's dated October 2026, and it's filed under pdc_rx_list_sg_add(9). slay, go add some buffers ππ
π¦ 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