kmb_ocs_aead_dma_prepare(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME

okay so kmb_ocs_aead_dma_prepare(9) is a Kernel API Manual girlie whose whole thing is: Do DMA mapping for AEAD processing. That’s the vibe. She handles the DMA mapping setup and the linked-list init for AEAD processing, and honestly? iconic. ✨

✨ SYNOPSIS

here’s the signature, bestie β€” keep it exactly like this:

int kmb_ocs_aead_dma_prepare (struct aead_request *req , u32
       *src_dll_size );

No renaming, no vibing your way into a different parameter. 😌

πŸŽ€ ARGUMENTS

  • req β€” The AEAD request being processed. That’s the request main character.
  • src_dll_size β€” Where to store the length of the data mapped into the src_dll OCS DMA list. Basically the spot for that length number. πŸ“

πŸ¦‹ DESCRIPTION

k so this function does the following, fr fr:

  • DMA map req->src and req->dst
  • Initialize the following OCS DMA linked lists: rctx->src_dll, rctx->dst_dll, rctx->aad_src_dll and rxtc->aad_dst_dll
yes bestie, that last one says rxtc β€” keep it exactly as written, don’t auto-correct it 😭

🌸 RETURN

0 on success, negative error code otherwise.

So: zero = she ate and left no crumbs 🍽️✨, negative = something went off πŸ’€. Either way, that’s the return contract.

πŸ‘‘ SEE ALSO

go read these, iykyk:

  • Kernel file ./drivers/crypto/intel/keembay/keembay-ocs-aes-core.c
  • struct ocs_aes_tctx(9)
  • struct ocs_aes_rctx(9)

okay bye bestie 🫢 source: ./drivers/crypto/intel/keembay Β· date: October 2026 β€” periodt. πŸ’…

πŸ“¦ where this page comes from