qed_db_recovery_add(9)
π qed_db_recovery_add(9) π
okay so bestie, welcome to the Kernel API Manual β yes, this is that manual, and today's main character is qed_db_recovery_add, a little function living its best life in the kernel. π What does it do? It adds doorbell information to the doorbell recovery mechanism. That's it. That's the whole vibe. πβ¨
π¦ SYNOPSIS π¦
int qed_db_recovery_add (struct qed_dev *cdev , void __iomem *db_addr ,
void *db_data , enum qed_db_rec_width db_width , enum qed_db_rec_space
db_space );
literally just five args and an int return, no cap. π«Ά
πΈ ARGUMENTS πΈ
cdevβ the Qed dev pointer π like, the device you're doing all this for.db_addrβ the doorbell address π that's the spot.db_dataβ the address of wheredb_datais stored. yes, the address of where it's stored, we said what we said π.db_widthβ tells you whether the doorbell is32bor64b. (the page says it as32b pr 64band honestly we're keeping the typo, it's iconic π)db_spaceβ because doorbell recovery addresses can be user or kernel space, and this arg is how you say which π.
β RETURN β
Returns an int. that's the whole return section, she's short and sweet π
π SEE ALSO π
first up, the kernel file where all this lives:
./drivers/net/ethernet/qlogic/qed/qed_dev_api.hπ
and then the whole group chat of related functions, all present and accounted for, no one left on read π:
qed_init_dp(9)qed_init_struct(9)qed_resc_free(9)qed_resc_alloc(9)qed_resc_setup(9)qed_hw_init(9)qed_hw_timers_stop_all(9)qed_hw_stop(9)qed_hw_stop_fastpath(9)qed_hw_start_fastpath(9)qed_hw_prepare(9)qed_hw_remove(9)qed_ptt_acquire(9)qed_ptt_acquire_context(9)qed_ptt_release(9)qed_dmae_host2grc(9)qed_dmae_host2host(9)qed_fw_l2_queue(9)qed_fw_vport(9)qed_fw_rss_eng(9)qed_llh_get_num_ppfid(9)qed_llh_set_ppfid_affinity(9)qed_llh_set_roce_affinity(9)qed_llh_add_mac_filter(9)qed_llh_remove_mac_filter(9)qed_llh_add_protocol_filter(9)qed_llh_remove_protocol_filter(9)qed_final_cleanup(9)qed_get_queue_coalesce(9)qed_set_queue_coalesce(9)qed_pglueb_set_pfid_enable(9)qed_db_recovery_del(9)
lowkey a whole friend group of qed_* functions and you're gonna want to meet them all fr fr π§
and that's the page!! π this little masterpiece comes from ./drivers/net/ethernet/qlogic/qed and it's dated October 2026 β yes, the future, she's ahead of her time π
β¨ slay, go add those doorbells bestie ππ
π¦ 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