qed_spq_add_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ™Œ
  • -EINVAL on 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