hisi_qm_alloc_qps_node(9)
β¨ hisi_qm_alloc_qps_node β Kernel API Manual β¨
okay so bestie, we're in the hisi_qm_alloc_qps_node(9) era and honestly? it's giving "let me build you a whole squad of queue pairs" π
this is a kernel API page, so grab a strawberry π and let's go
π NAME π
hisi_qm_alloc_qps_node β literally just create multiple queue pairs. that's it, that's the vibe β¨
π¦ SYNOPSIS π¦
int hisi_qm_alloc_qps_node (struct hisi_qm_list *qm_list , int qp_num ,
u8 *alg_type , int node , struct hisi_qp **qps );
like, look at her. five args, one int return, main character energy π
πΈ ARGUMENTS πΈ
qm_listβ the list of all available devices. every single one of them, no cap πqp_numβ the number of queue pairs that need created π’alg_typeβ the algorithm type π«nodeβ the numa node πqpsβ the queue pairs that need created π«Ά
π DESCRIPTION π
okay so here's the tea β this function will sort all available device according to numa distance. like she's matchmaking, but for hardware π§
then she tries to create all queue pairs from one device β all of them from a single device, periodt π
and if all devices do not meet the requirements? she will return error. no notes, that's just how it is π
π SEE ALSO π
the whole friend group lives in the kernel file ./drivers/crypto/hisilicon/qm.c, and here's everybody, no one left out fr fr π
struct qm_hw_err(9)hisi_qm_get_hw_info(9)hisi_qm_create_qp(9)hisi_qm_release_qp(9)hisi_qm_start_qp(9)qp_stop_fail_cb(9)qm_drain_qp(9)hisi_qm_stop_qp(9)hisi_qp_send(9)qm_hw_err_isolate(9)qm_frozen(9)hisi_qm_wait_task_finish(9)hisi_qm_uninit(9)hisi_qm_get_vft(9)hisi_qm_set_vft(9)hisi_qm_start(9)qm_invalid_queues(9)hisi_qm_stop(9)hisi_qm_dev_err_init(9)hisi_qm_dev_err_uninit(9)hisi_qm_free_qps(9)hisi_qm_set_algqos_init(9)hisi_qm_sriov_enable(9)hisi_qm_sriov_disable(9)hisi_qm_sriov_configure(9)hisi_qm_dev_err_detected(9)hisi_qm_dev_slot_reset(9)hisi_qm_dev_shutdown(9)hisi_qm_alg_register(9)hisi_qm_alg_unregister(9)hisi_qm_init(9)hisi_qm_get_dfx_access(9)hisi_qm_put_dfx_access(9)hisi_qm_pm_init(9)hisi_qm_pm_uninit(9)hisi_qm_suspend(9)hisi_qm_resume(9)
lowkey obsessed with how this whole page is just "trust the numa distance sort" π but fr, that's the whole spec, don't come for me
and that's the page bestie!! π source path ./drivers/crypto/hisilicon, dated October 2026, page hisi_qm_alloc_qps_node(9) β mwah, slay, bye ππ₯
π¦ 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