qed_spq_add_entry(9)
π qed_spq_add_entry β a kernel API manual moment π
okay so bestie, this one lives in the Kernel API Manual (section 9, kernel API vibes β¨), and it's genuinely such a little icon. it's all about sliding a new entry into a pending list while you're already holding the lock β iykyk π
β¨ NAME β¨
qed_spq_add_entry β add a new entry to the pending list. should be used while the lock is being held. periodt π
π¦ SYNOPSIS π¦
int qed_spq_add_entry (struct qed_hwfn *p_hwfn , struct qed_spq_entry
*_ent , enum spq_priority priority );
π ARGUMENTS π
p_hwfnβ the HW device data. literally the hardware's whole personality in a struct π«Άp_entβ an entry to add. this is the thing you're yeeting into the list πΈpriorityβ desired priority. the entry's main character energy tier π
π DESCRIPTION π
so here's the tea: it adds an entry to the pending list if there's room β meaning an empty element is available in the free_pool β¨ β or else it places the entry in the unlimited_pending pool instead. either way your entry finds a home, no cap π π
β RETURN β
- zero on success π
-EINVALon invalid priority π (the vibe check failed, sorry bestie)
π§ SEE ALSO π§
Kernel file ./drivers/net/ethernet/qlogic/qed/qed_spq.c β go read it, it's giving lore ππ₯
reminder bestie: this one should be used while the lock is being held β that's not a suggestion, that's the whole assignment ππ
and that's the page! this icon dropped from ./drivers/net/ethernet/qlogic/qed back in October 2026, so go forth and add those entries 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