ocs_create_l...list_from_sg(9)
π 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 passsgto this function, it must have already been mapped withdma_map_sg. like it's not optional, don't skip that step πsg_dma_countβ the number of DMA-mapped entries insg. and this has to be exactly the value thatdma_map_sgreturned back whensgwas mapped. no making up numbers, iykyk π₯dll_descβ the OCS DMAdma_listyou 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 π¦
- Kernel file
./drivers/crypto/intel/keembay/ocs-aes.c struct ocs_dma_linked_list(9)ocs_aes_set_key(9)ocs_aes_op(9)ocs_aes_gcm_op(9)ocs_aes_ccm_op(9)
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
- 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