hisi_qm_create_qp(9)
π hisi_qm_create_qp(9) β like, the Kernel API Manual bestie β¨
okay so welcome to the function that literally births a queue pair π this is hisi_qm_create_qp, straight out of the Kernel API Manual β section 9, kernel-space tea only, no userspace shenanigans here π
β¨ NAME β¨
hisi_qm_create_qp β spawn a queue pair out of a qm. that's it. that's the whole job. main character energy fr fr π
π¦ SYNOPSIS π¦
struct hisi_qp * hisi_qm_create_qp (struct hisi_qm *qm , u8 alg_type );
yes she returns a struct hisi_qp * pointer, and yes you pass her two things. we'll get to those π
πΈ ARGUMENTS πΈ
qmβ the qm we're creating a qp from. like, the source. the origin story. you do not get a qp out of nowhere bestie, you get it from aqmπ«Άalg_typeβ the accelerator-specific algorithm type, living in thesqc. it's au8, so keep it tidy. this is the accelerator's little "which algorithm am I" label β
π₯ DESCRIPTION π₯
Returns the created qp. that's the good timeline π
But if it fails? negative error code. not zero, not a NULL you can shrug off β negative error code π so like, check your return value. always. iykyk. a negative code is the function going "girl, no" and you need to actually handle that π
π SEE ALSO π
the whole hisilicon crypto qm extended universe, no cap β go read these too, they're all connected π§:
Kernel file ./drivers/crypto/hisilicon/qm.cstruct qm_hw_err(9)hisi_qm_get_hw_info(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_alloc_qps_node(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)
like i said. whole cinematic universe. obsessied π
mwah π that's the page! sourced from ./drivers/crypto/hisilicon, dated October 2026, and titled hisi_qm_create_qp(9) β go forth and create queue pairs responsibly, 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