libie_cp_alloc_desc_mem(9)
β¨ libie_cp_alloc_desc_mem β¨
okay bestie, buckle up π this one's from the Kernel API Manual, and it's literally the moment a descriptor ring gets its very own DMA memory. iconic behavior, no cap π
πΈ NAME πΈ
libie_cp_alloc_desc_mem β allocate DMA memory for descriptor ring π¦
like, the whole personality of this function is "gimme some DMA-able memory for my descriptor ring," and honestly? she ate. π₯
π SYNOPSIS π
void * libie_cp_alloc_desc_mem (struct device *dev , struct
libie_cp_dma_mem *mem , u32 size );
it hands you back a void *, and the args are dev, mem, and size β that's the whole vibe check β¨
π«Ά ARGUMENTS π«Ά
devβ device information. like, whose device are we even doing this for, bestie? that one. πmemβ memory for DMA information to be stored. this is where the DMA deets go to live πsizeβ size of the memory to allocate. how much room you're claiming, fr fr π
β RETURN β
virtual address of DMA memory β or NULL. π (yeah, she can come back empty-handed, so maybe check that, ngl)
π SEE ALSO π
the whole friend group π«Ά β Kernel file ./drivers/net/ethernet/intel/libie/controlq.c, plus:
libie_ctlq_free_fq(9), libie_ctlq_init_fq(9), libie_ctlq_prep_rx_desc(9), libie_ctlq_post_rx_buffs(9), libie_ctlq_free_tx_msgs(9), libie_ctlq_alloc_tx_msgs(9), libie_cp_free_desc_mem(9), libie_ctlq_dealloc_ring_res(9), libie_ctlq_alloc_queue_res(9), libie_ctlq_init_regs(9), libie_find_ctlq(9), libie_ctlq_add(9), libie_ctlq_remove(9), libie_ctlq_init(9), libie_ctlq_deinit(9), libie_ctlq_tx_desc_from_msg(9), libie_ctlq_send_desc_avail(9), libie_ctlq_send(9), libie_ctlq_send_clean(9), libie_ctlq_fill_rx_msg(9), libie_ctlq_recv(9), libie_ctlq_xn_pop_free(9), __libie_ctlq_xn_push_free(9), libie_ctlq_xn_push_free(9), libie_ctlq_xn_deinit_dma(9), libie_ctlq_xn_init_dma(9), libie_ctlq_xn_process_recv(9), libie_xn_check_async_timeout(9), libie_ctlq_xn_recv(9), libie_cp_map_dma_mem(9), libie_cp_unmap_dma_mem(9), libie_ctlq_xn_process_send(9), libie_ctlq_xn_send(9), struct libie_ctlq_xn_rel_tx_ctx(9), libie_ctlq_xn_rel_tx_buf(9), libie_ctlq_xn_send_clean(9), libie_ctlq_xn_shutdown(9), libie_ctlq_xn_deinit(9), libie_ctlq_xn_init(9)
that's a lot of friends, but she's a social icon, what can you do π β¨
and that's the whole page, bestie β snagged from ./drivers/net/ethernet/intel/l..., dated October 2026, and yes it's still libie_cp_alloc_desc_mem(9) at the bottom, 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