qm_drain_qp(9)
π qm_drain_qp β the Kernel API Manual page, bestie edition π
okay so this is a page from the Kernel API Manual, and it's about qm_drain_qp(9). it's short, it's sweet, it's giving "one job, done right" energy. let's get into it π«Ά
β¨ NAME β¨
qm_drain_qp β literally just: drain a qp. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int qm_drain_qp (struct hisi_qp *qp );
like, that's it. that's the function. she takes one pointer and hands you back an int. iconic.
π ARGUMENTS π
qpβ the qp we want to drain. yes, THE qp. your qp. the one you picked. go off π
π¦ DESCRIPTION π¦
okay so here's the situation, bestie. if the device does not support stopping the queue by sending a mailbox β like, that's just not a thing it can do β then this is how we figure out whether the queue is actually cleared: we judge the tail pointers of sq and cq. π₯
that's it. that's the whole check. tail pointers of sq and cq, no cap. it's giving "look at the pointers and trust your gut" but make it kernel code π
ngl, this one's short because the function is short. some manpages are novels, some are just a vibe check on two pointers. both are valid π
π SEE ALSO π
buckle up bestie, this list is LONG and we are not skipping a single one of them, fr fr. also heads up: the kernel file is ./drivers/crypto/hisilicon/qm.c π
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)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)
thirty-seven entries. i counted. we ate and left no crumbs π
and that's the page!! β¨ cute little sign-off time: this one lives under ./drivers/crypto/hisilicon, it's dated October 2026, and the page itself is qm_drain_qp(9). mwah, go drain that qp 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