Home
last modified time | relevance | path

Searched refs:bytesToRead (Results 1 – 2 of 2) sorted by relevance

/kernel/uniproton/src/fs/vfs/
Dvfs_fs.c793 size_t bytesToRead; in OsVfsReadv() local
824 bytesToRead = iov[i].iov_len; in OsVfsReadv()
826 size_t lenToRead = totalLen < bytesToRead ? totalLen : bytesToRead; in OsVfsReadv()
827 ret = memcpy_s(readBuf, bytesToRead, curBuf, lenToRead); in OsVfsReadv()
832 if (totalLen < (size_t)bytesToRead) { in OsVfsReadv()
835 curBuf += bytesToRead; in OsVfsReadv()
836 totalLen -= bytesToRead; in OsVfsReadv()
/kernel/liteos_m/components/fs/vfs/
Dvfs_fs.c1145 size_t bytesToRead; in readv() local
1176 bytesToRead = iov[i].iov_len; in readv()
1178 size_t lenToRead = totalLen < bytesToRead ? totalLen : bytesToRead; in readv()
1179 ret = memcpy_s(readBuf, bytesToRead, curBuf, lenToRead); in readv()
1184 if (totalLen < (size_t)bytesToRead) { in readv()
1187 curBuf += bytesToRead; in readv()
1188 totalLen -= bytesToRead; in readv()