hinic_hwdev_hw_ci_addr_set(9)
π hinic_hwdev_hw_ci_addr_set β from the Kernel API Manual, bestie
Okay so picture this: you're in the hinic driver, you've got a send queue, and the hardware needs to know where your consumer index lives and how it should behave. That's this function. It's hinic_hwdev_hw_ci_addr_set, and it's lowkey the glow-up moment for your SQ's ci address. π
β¨ NAME β¨
hinic_hwdev_hw_ci_addr_set β sets the cons idx addr and attributes in HW for sq. That's it, that's the whole job, and she does it slayfully. π
π¦ SYNOPSIS π¦
int hinic_hwdev_hw_ci_addr_set (struct hinic_hwdev *hwdev , struct
hinic_sq *sq , u8 pending_limit , u8 coalesc_timer );
Like, four things in, one int out. Iconic signature honestly.
πΈ ARGUMENTS πΈ
hwdevβ the NIC HW device. Your main character. The whole NIC. π«Άsqβ the send queue. The one getting its ci address set. Go off queen.pending_limitβ the maximum pending update ci events, and ngl the unit is8. Yes,8. Not 1, not 8 bytes, justβ¦ unit 8. Periodt. πcoalesc_timerβ the coalesc period for update ci, and this one's unit is8 us. Coalescing! Timing! Elegance! β±οΈ
π DESCRIPTION π
So what does it actually return, you ask? Glad you did:
- Return
0β Success β¨ (the good ending) - negative β Failure π (the bad ending, and yes it's literally just "negative", that's all the docs give us, iykyk)
π₯ SEE ALSO π₯
The whole friend group, fr fr. Go read these too:
parse_capability(9), get_capability(9), get_dev_cap(9), init_msix(9), disable_msix(9), hinic_port_msg_cmd(9), init_fw_ctxt(9), set_hw_ioctxt(9), clear_io_resources(9), set_resources_state(9), get_base_qpn(9), hinic_hwdev_ifup(9), hinic_hwdev_ifdown(9), hinic_hwdev_cb_register(9), hinic_hwdev_cb_unregister(9), nic_mgmt_msg_handler(9), init_pfhwdev(9), free_pfhwdev(9), hinic_init_hwdev(9), hinic_free_hwdev(9), hinic_hwdev_num_qps(9), hinic_hwdev_get_sq(9), hinic_hwdev_get_rq(9), hinic_hwdev_msix_cnt_set(9), hinic_hwdev_msix_set(9), hinic_hwdev_set_msix_state(9)
And the source file itself, the mothership: ./drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c π
Okay bestie real talk β the original page is honest-to-god just "Return 0 - Success, negative - Failure" for the description. I'm not out here inventing lore. That's all she gave us. π
Alright that's the whole vibe check π β brought to you by the ./drivers/net/ethernet/huawei/... crew, October 2026 edition, page hinic_hwdev_hw_ci_addr_set(9). Now go set that ci address. Slay. π
π¦ 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