ice_init_sq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_init_sq β€” the manual page, but make it make sense

okay so bestie, welcome to the Kernel API Manual entry for ice_init_sq(9) β€” yes, that's the section 9 situation, kernel-internals girlie territory 🧚✨


✨ NAME ✨

ice_init_sq β€” the main initialization routine for the Control ATQ πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int ice_init_sq (struct ice_hw *hw , struct ice_ctl_q_info *cq );

🌸 ARGUMENTS 🌸

  • hw β€” pointer to the hardware structure πŸ’œ
  • cq β€” pointer to the specific Control queue 🫢

πŸ”₯ DESCRIPTION πŸ”₯

So this is the main initialization routine for the Control Send Queue. Main character energy, truly πŸ‘‘

But listen β€” before you even think about calling this function, the driver *MUST* set these fields in the cq->structure:

  • cq->num_sq_entries
  • cq->sq_buf_size

That's not a suggestion, bestie, that's a MUST β€” capital letters, no cap πŸ’€

And do *NOT* hold the lock when you call this, okay? The memory allocation routines it calls are not going to be atomic context safe. So like… put the lock down first. fr fr πŸ™ˆ

πŸ’« SEE ALSO πŸ’«

Kernel file ./drivers/net/ethernet/intel/ice/ice_controlq.c

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_rq(9), ice_shutdown_sq(9), ice_aq_ver_check(9), ice_shutdown_rq(9), ice_init_check_adminq(9), ice_init_ctrlq(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)


Okay that's the whole thing, you ate that 🌈⭐

Sign-off corner: this gorgeous little page lives at ./drivers/net/ethernet/intel/ice and it's dated October 2026 β€” iconic, timeless, periodt πŸ’…πŸ’–

πŸ“¦ where this page comes from