ice_get_xp_from_qid(9)
π ice_get_xp_from_qid(9) β the Kernel API Manual glow-up β¨
okay so bestie, welcome to ice_get_xp_from_qid(9), a genuine little function from the Kernel API Manual and honestly? it's giving "small but mighty" π
πΈ NAME πΈ
ice_get_xp_from_qid β get ZC XSK buffer pool bound to a queue ID
like literally, that's the whole job. it goes and finds the zero-copy XSK buffer pool that's attached to a particular queue ID π
β¨ SYNOPSIS β¨
struct xsk_buff_pool * ice_get_xp_from_qid (struct ice_vsi *vsi , u16
qid );
she takes two things and she hands you back a struct xsk_buff_pool *. no cap π«Ά
π¦ ARGUMENTS π¦
vsiβ pointer to VSI. that's yourstruct ice_vsi *, the main character of this whole operation πqidβ index of a queue to look at XSK buff pool presence. you're basically asking "hey, is there an XSK buff pool hanging out at this queue index?" π
π RETURN π
A pointer to xsk_buff_pool structure if there is a buffer pool attached and configured as zero-copy. otherwise? NULL. that's it, that's the vibe check π
ngl, that "and configured as zero-copy" part is doing heavy lifting β it's not just "is there a pool", it's "is there a pool that's set up for zero-copy". both boxes gotta be ticked, fr fr β
π SEE ALSO π
first up, the kernel file itself, go peek:
- Kernel file
./drivers/net/ethernet/intel/ice/ice.h
and then the whole friend group, in order, because we do not skip anyone at this table π:
ice_vector_ch_enabled(9)ice_ptp_pf_handles_tx_interrupt(9)ice_irq_dynamic_ena(9)ice_netdev_to_pf(9)ice_is_txtime_ena(9)ice_is_txtime_cfg(9)ice_rx_xsk_pool(9)ice_tx_xsk_pool(9)ice_get_max_txq(9)ice_get_max_rxq(9)ice_get_main_vsi(9)ice_get_netdev_priv_vsi(9)ice_get_ctrl_vsi(9)ice_find_vsi(9)ice_is_switchdev_running(9)ice_is_adq_active(9)ice_set_rdma_cap(9)ice_clear_rdma_cap(9)ice_is_dual(9)ice_is_primary(9)ice_pf_src_tmr_owned(9)ice_get_primary_hw(9)ice_get_ctrl_pf(9)
lowkey an iconic lineup π
and that's the page!! sourced straight from ./drivers/net/ethernet/intel/ice, dated October 2026, and yes the manual name is ice_get_xp_from_qid(9) in case you forgot already π go read your XSK pools bestie, ily, 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