hisi_qp_send(9)
hisi_qp_send π β¨
okay so bestie, this is the Kernel API Manual page for the hisi queue-pair send situation. itβs giving βhardware queue, but make it a function call.β letβs get into it π«Ά
πΈ NAME πΈ
hisi_qp_send β Queue up a task in the hardware queue. thatβs the whole plot.
β¨ SYNOPSIS β¨
int hisi_qp_send (struct hisi_qp *qp , const void *msg );
π ARGUMENTS π
qpβ Theqpin which to put the message. like, the queue pair thatβs getting the message.msgβ The message. the thing being sent, periodt.
π DESCRIPTION π
so hisi_qp_send is gonna hand you <red>**-EBUSY**</red> if qp is currently full, and <yellow>**-EAGAIN**</yellow> if the qm related to that qp is resetting. thatβs the return-value tea π΅
π«Ά NOTE π«Ά
real talk, this is the part where the concurrency girlies need to pay attention π
- This function may run with
qm_irq_threadand ACC reset happening at same time. - It has no race with
qm_irq_thread. - However, during
hisi_qp_send, ACC reset may happen, and we have no lock here considering performance. - This causes the current
qm_dbsending fail or can not receive sendedsqe. - QM sync/async receive function should handle the error
sqe. - ACC reset done function should clear used
sqeto 0.
π SEE ALSO π
- Kernel file
./drivers/crypto/hisilicon/qm.cstructqm_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)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)
made with π from source ./drivers/crypto/hisilicon, page version hisi_qp_send(9), dated October 2026. sheβs iconic, sheβs kernel-coded, and this is the sign-off π¦β¨
π¦ 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