hisi_qm_create_qp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a qm 🫢
  • alg_type β€” the accelerator-specific algorithm type, living in the sqc. it's a u8, 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 🧚:

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