ice_init_ctrlq(9)
π ice_init_ctrlq(9) β Kernel API Manual vibes only β¨
okay so bestie, welcome to ice_init_ctrlq(9), the main initialization routine for any control Queue. she's the one who sets the whole thing up. the queen bee. the main character of control queue setup ππ
β¨ NAME β¨
ice_init_ctrlq β the main initialization routine for any control Queue. like, THE entry point. no cap π
π SYNOPSIS π
int ice_init_ctrlq (struct ice_hw *hw , enum ice_ctl_q q_type );
πΈ ARGUMENTS πΈ
hwβ pointer to the hardware structure. literally handing her the hardware, she'll take it from there π«Άq_typeβ the specific Control queue type. which flavor of ctrlq are we initializing today, bestie? π¦
π DESCRIPTION π
okay so here's the tea, and this part is non-negotiable fr fr: prior to calling this function, the driver *MUST* set the following fields in the cq->structure:
cq->num_sq_entriescq->num_rq_entriescq->rq_buf_sizecq->sq_buf_size
like, all four. no skipping. if you roll up to this function without those filled in, that's on you, not her π set your fields first, then call. periodt β¨
π₯ NOTE π₯
heads up bestie: this function does not initialize the controlq locks. nope. not her job. she's leaving that to someone else π«₯ so don't come for her when the locks aren't ready, iykyk
π SEE ALSO π
the kernel file sis lives in: ./drivers/net/ethernet/intel/ice/ice_controlq.c
and her whole friend group, the entire ctrlq extended universe π:
ice_adminq_init_regs(9)ice_mailbox_init_regs(9)ice_sb_init_regs(9)ice_check_sq_alive(9)ice_alloc_ctrlq_sq_ring(9)ice_alloc_ctrlq_rq_ring(9)ice_free_cq_ring(9)ice_alloc_rq_bufs(9)ice_alloc_sq_bufs(9)ice_cfg_sq_regs(9)ice_cfg_rq_regs(9)ice_init_sq(9)ice_init_rq(9)ice_shutdown_sq(9)ice_aq_ver_check(9)ice_shutdown_rq(9)ice_init_check_adminq(9)ice_is_sbq_supported(9)ice_get_sbq(9)ice_shutdown_ctrlq(9)ice_shutdown_all_ctrlq(9)ice_init_all_ctrlq(9)ice_init_ctrlq_locks(9)ice_create_all_ctrlq(9)ice_destroy_ctrlq_locks(9)ice_destroy_all_ctrlq(9)ice_clean_sq(9)ice_ctl_q_str(9)ice_debug_cq(9)ice_sq_done(9)ice_sq_send_cmd(9)ice_fill_dflt_direct_cmd_desc(9)ice_clean_rq_elem(9)
and that's the whole page, bestie, you ate that π this drop came straight out of ./drivers/net/ethernet/intel/ice, stamped October 2026 β go be iconic with your control queues π
β¨π
π¦ 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