livoxG1: StagingBuff: add getClEngineIovec

This commit is contained in:
2025-11-08 12:18:55 -04:00
parent 869160b782
commit 073cdde08f
+12
View File
@@ -106,6 +106,18 @@ public:
return iov; return iov;
} }
/** EXPLANATION:
* Returns an iovec for OpenCL engine buffer access.
* The buffer is mmap()-allocated and suitable for CL_MEM_USE_HOST_PTR.
*/
struct iovec getClEngineIovec() const
{
struct iovec iov;
iov.iov_base = buffer.get();
iov.iov_len = bufferNBytes;
return iov;
}
inline std::string stringify() const inline std::string stringify() const
{ {
std::ostringstream oss; std::ostringstream oss;