qed_wr(9)
π qed_wr(9) β the Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual, and we're talking about qed_wr. Yes, the name is literally "qed write" β it's the "put a value somewhere in the BAR" girlie of the qlogic qed driver. Let's get into it β¨
πΈ NAME πΈ
qed_wr β writes a value to BAR using the given ptt. That's it, that's the whole job, and she does it slayfully π
β¨ SYNOPSIS β¨
void qed_wr (struct qed_hwfn *p_hwfn , struct qed_ptt *p_ptt , u32
hw_addr , u32 val );
literally just copy-paste this into your brain, no cap π«Ά
π ARGUMENTS π
p_hwfnβ the HW device data. the main character of the whole operation honestly, she holds all the hardware lore πp_pttβ the P_ptt. iconic, mysterious, absolutely essential, do not forget her π¦hw_addrβ the HW address. this is the "where" of it all πvalβ the Val. the "what". the payload. the moment. the reason we're all here β
π§ RETURN π§
Void. nothing comes back. it gives nothing and takes nothing (well, it takes your value and puts it in the BAR, but like, energetically? void) π
π₯ SEE ALSO π₯
okay so the source of all this wisdom lives in the kernel file ./drivers/net/ethernet/qlogic/qed/qed_hw.h β and here's the whole bestie squad of related functions, no gatekeeping here:
qed_gtt_init(9)qed_ptt_pool_alloc(9)qed_ptt_pool_free(9)qed_ptt_get_hw_addr(9)qed_ptt_get_bar_addr(9)qed_ptt_set_win(9)qed_get_reserved_ptt(9)qed_rd(9)qed_memcpy_from(9)qed_memcpy_to(9)qed_fid_pretend(9)qed_port_pretend(9)qed_port_unpretend(9)qed_port_fid_pretend(9)qed_vfid_to_concrete(9)qed_dmae_idx_to_go_cmd(9)qed_dmae_info_alloc(9)qed_dmae_info_free(9)qed_hw_err_notify(9)
like, the entire friend group showed up to the function reference party and everyone ate π
lowkey a vibe check for you: the whole thing comes from ./drivers/net/ethernet/qlogic/qed, dated October 2026 β so yeah, this manual page is from the future and she knows it π iykyk
and that's the page, bestie β qed_wr(9), written, dated October 2026, signed off by the ./drivers/net/ethernet/qlogic/qed girlies themselves. periodt π
π¦ 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