ocs_create_l...list_from_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, this is ocs_create_linked_list_from_sg β€” it's giving "Create OCS DMA linked list from SG list." that's the whole vibe. it's a (9) Kernel API Manual situation, and honestly? it ate. ✨


πŸ’« SYNOPSIS πŸ’«

int ocs_create_linked_list_from_sg (const struct ocs_aes_dev *aes_dev ,
struct scatterlist *sg , int sg_dma_count , struct ocs_dll_desc
*dll_desc , size_t data_size , size_t data_offset );

like literally just call it with those six things, no cap 🫢


🌸 ARGUMENTS 🌸

  • aes_dev β€” the OCS AES device that the list is gonna be created for. it's her stage, her moment, main character energy fr.
  • sg β€” the SG list that the OCS DMA linked list gets created from. ok so important detail bestie: when you pass sg to this function, it must have already been mapped with dma_map_sg. like it's not optional, don't skip that step πŸ’…
  • sg_dma_count β€” the number of DMA-mapped entries in sg. and this has to be exactly the value that dma_map_sg returned back when sg was mapped. no making up numbers, iykyk πŸ”₯
  • dll_desc β€” the OCS DMA dma_list you use to store info about the linked list that got created. it's the lil memory keeper πŸŽ€
  • data_size β€” the size of the data (from the SG list) that's being mapped into the OCS DMA linked list.
  • data_offset β€” the offset (within the SG list) of the data that's being mapped.

⭐ RETURN ⭐

0 on success, and a negative error code if it's not. 😭 (so like, check it. please. for me.)


πŸ¦‹ SEE ALSO πŸ¦‹


lowkey read the friends too, they're all iconic in their own way πŸ‘‘

and that's the whole page bestie, mwah πŸ’– this little gem lives in ./drivers/crypto/intel/keembay, and the version she's serving is from October 2026 β€” go off, honestly. πŸŒˆβœ¨πŸ“

πŸ“¦ where this page comes from