sec_queue_send(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sec_queue_send β€” from the Kernel API Manual, bestie ✨

Okay so we're doing a whole kernel API thing today and honestly? It's giving "one job, do it well." This is sec_queue_send(9), straight out of the Kernel API Manual, and she's the designated driver who drops exactly one operation off at the hw queue. πŸŽ€


🌸 NAME 🌸

sec_queue_send β€” queue up a single operation in the hw queue πŸ¦‹

Not two. Not a batch. One. She's focused, she's efficient, she's not doing extra credit. πŸ‘‘


✨ SYNOPSIS ✨

int sec_queue_send (struct sec_queue *queue , struct sec_bd_info *msg ,
void *ctx );

🫢 ARGUMENTS 🫢

  • queue β€” The queue in which to put the message. That's her destination, her venue, her whole moment. πŸ’…
  • msg β€” The message. The main character of this entire function call, no cap. πŸ’Œ
  • ctx β€” Context to be put in the shadow array and passed back to cb on result. Like, the function takes your little note, tucks it safely into the shadow array, and later hands it right back to cb when the result rolls in. So thoughtful of her, we love a callback that remembers. 😭🫢

πŸ”₯ DESCRIPTION πŸ”₯

So here's the tea: this function will return -EAGAIN if the queue is currently full. 😭 That's it, that's the whole vibe. Queue's full β†’ you get -EAGAIN β†’ you go try again like a polite little retry loop. Don't be weird about it. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/crypto/hisilicon/sec/sec_drv.c β€” go read the source, iykyk πŸ“–


And that's the whole page, bestie! πŸ¦‹ This iconic little doc lives over in ./drivers/crypto/hisilicon/sec, dated October 2026, and it's filed under sec_queue_send(9) β€” literally couldn't be more organized if she tried. πŸ’–βœ¨

πŸ“¦ where this page comes from