libie_cp_alloc_desc_mem(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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