hinic_ceqs_init(9)
π hinic_ceqs_init(9) β the kernel API manual, but make it cute
Okay bestie, buckle up, because this is hinic_ceqs_init(9) straight outta the Kernel API Manual and it's honestly giving "small function, big responsibilities" β¨ It initializes all the ceqs, which is the whole entire vibe. Let's get into it π
β¨ NAME β¨
hinic_ceqs_init β init all the ceqs π
Like, that's it. That's the job. It inits the ceqs. All of them. Not some. All. π
πΈ SYNOPSIS πΈ
int hinic_ceqs_init (struct hinic_ceqs *ceqs , struct hinic_hwif *hwif ,
int num_ceqs , u32 q_len , u32 page_size , struct msix_entry
*msix_entries );
Six arguments, one int coming back at you, no cap π«Ά Copy it exactly when you use it, bestie β the spacing is right there in the original and I'm not about to mess with it π
π¦ ARGUMENTS π¦
ceqsβ ceqs part of the chip. Yes, the name matches the name. Iconic, honestly πhwifβ the hardware interface of a pci function device. This is the hardware-y connection to your PCI function, and it's kind of the main character of the hardware side π₯num_ceqsβ number of CEQs. Count 'em, tell the function, done β¨q_lenβ number of EQ elements. How many elements are chilling in the event queue πpage_sizeβ the page size of the event queue. Page size, but for the EQ specifically, don't get it twisted πmsix_entriesβ msix entries associated with the event queues. The msix entries that go with your EQs, iykyk π§
π DESCRIPTION π
Okay so here's the whole deal, plain and simple:
0β Success π- Negative β Failure π
That's literally the return contract, and we respect it. Positive energy only for that zero, bestie π
π SEE ALSO π
The kernel file to go peek at is:
./drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c
And here's the whole friend group, all present and accounted for β not me listing every single one, but also yes, every single one π«Ά
hinic_aeq_register_hw_cb(9), hinic_aeq_unregister_hw_cb(9), hinic_ceq_register_cb(9), hinic_ceq_unregister_cb(9), eq_update_ci(9), aeq_irq_handler(9), ceq_event_handler(9), ceq_irq_handler(9), eq_irq_handler(9), eq_irq_work(9), ceq_tasklet(9), aeq_interrupt(9), ceq_interrupt(9), set_eq_ctrls(9), aeq_elements_init(9), ceq_elements_init(9), alloc_eq_pages(9), free_eq_pages(9), init_eq(9), remove_eq(9), hinic_aeqs_init(9), hinic_aeqs_free(9), hinic_ceqs_free(9)
Heads up bestie: the SYNOPSIS says 0 is success and negative is failure, and the DESCRIPTION backs that up β so if you get something negative back, that's your L, go handle it π
Okay that's the whole page, love you, bye π Sourced from ./drivers/net/ethernet/huawei/... and dated October 2026 β slay, see you in the next manual page πβ¨
π¦ 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