_qed_cxt_acquire_cid(9)
π
_qed_cxt_acquire_cid β a Kernel API Manual moment, bestie
okay so picture this: it's giving kernel-internals, it's giving qlogic energy, and the manual it lives in is literally called Kernel API Manual. we're in the 9 section (that's the kernel API section, iykyk), and today's main character is a little function that hands you a fresh cid. let's get into it π
β¨ NAME β¨
_qed_cxt_acquire_cid β grab yourself a brand new cid of one specific protocol type, for a vf-queue. that's the whole vibe. no cap. π¦
πΈ SYNOPSIS πΈ
int _qed_cxt_acquire_cid (struct qed_hwfn *p_hwfn , enum protocol_type
type , u32 *p_cid , u8 vfid );
like, copy it exactly, bestie, don't be creative with the signature π
π ARGUMENTS π
p_hwfnβ the HW device data. this is your hardware handler baddie, the whole device's info lives here πtypeβ the type. yes. that's the description. it's the protocol type, and it's doing the absolute least in the docs but we respect it πp_cidβ a pointer to the cid. you pass in the address, it fills you in. pointer cid, periodt β¨vfidβ the engine relative index. and here's the important lil detail: it'sQED_CXT_PF_CIDif it belongs to the PF. write that down π
π₯ RETURN π₯
Int. that's it, that's the return section. an int. slay, honestly. π
π§ SEE ALSO π§
first up, the kernel file it lives in β go read the source, it's literally right there:
./drivers/net/ethernet/qlogic/qed/qed_cxt.h
and then the whole friend group, in this order:
qed_cxt_get_cid_info(9)qed_cxt_get_tid_mem_info(9)qed_cxt_set_pf_params(9)qed_cxt_cfg_ilt_compute(9)qed_cxt_cfg_ilt_compute_excess(9)qed_cxt_mngr_alloc(9)qed_cxt_mngr_free(9)qed_cxt_tables_alloc(9)qed_cxt_mngr_setup(9)qed_cxt_hw_init_common(9)qed_cxt_hw_init_pf(9)qed_qm_init_pf(9)qed_qm_reconf(9)qed_cxt_release_cid(9)_qed_cxt_release_cid(9)qed_cxt_acquire_cid(9)
lowkey the whole cid lifecycle is in that list β acquire, release, and the underscore-prefixed twins. read them together, it's giving β¨loreβ¨
and that's the page, bestie π«Ά this masterpiece comes to you straight from ./drivers/net/ethernet/qlogic/qed, dated October 2026 β so go forth and acquire those cids responsibly πβπ
π¦ 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