Lines Matching refs:bufferSize
690 IncFsErrorCode IncFs_Root(const IncFsControl* control, char buffer[], size_t* bufferSize) { in IncFs_Root() argument
695 if (*bufferSize <= result.size()) { in IncFs_Root()
696 *bufferSize = result.size() + 1; in IncFs_Root()
701 *bufferSize = result.size(); in IncFs_Root()
957 static IncFsErrorCode getMetadata(const char* path, char buffer[], size_t* bufferSize) { in getMetadata() argument
958 const auto res = ::getxattr(path, kMetadataAttrName, buffer, *bufferSize); in getMetadata()
963 *bufferSize = neededSize; in getMetadata()
969 *bufferSize = res; in getMetadata()
974 size_t* bufferSize) { in IncFs_GetMetadataById() argument
984 return getMetadata(details::c_str(name), buffer, bufferSize); in IncFs_GetMetadataById()
988 size_t* bufferSize) { in IncFs_GetMetadataByPath() argument
998 return getMetadata(path, buffer, bufferSize); in IncFs_GetMetadataByPath()
1024 static IncFsErrorCode getSignature(int fd, char buffer[], size_t* bufferSize) { in getSignature() argument
1027 .file_signature_buf_size = (uint32_t)*bufferSize, in getSignature()
1033 *bufferSize = INCFS_MAX_SIGNATURE_SIZE; in getSignature()
1037 *bufferSize = args.file_signature_len_out; in getSignature()
1042 char buffer[], size_t* bufferSize) { in IncFs_GetSignatureById() argument
1056 return getSignature(fd, buffer, bufferSize); in IncFs_GetSignatureById()
1060 char buffer[], size_t* bufferSize) { in IncFs_GetSignatureByPath() argument
1070 return IncFs_UnsafeGetSignatureByPath(path, buffer, bufferSize); in IncFs_GetSignatureByPath()
1073 IncFsErrorCode IncFs_UnsafeGetSignatureByPath(const char* path, char buffer[], size_t* bufferSize) { in IncFs_UnsafeGetSignatureByPath() argument
1081 return getSignature(fd, buffer, bufferSize); in IncFs_UnsafeGetSignatureByPath()
1203 size_t* bufferSize) { in waitForReads() argument
1204 std::vector<RawPendingRead> pendingReads(*bufferSize); in waitForReads()
1205 if (const auto res = waitForReadsImpl(readFd, timeoutMs, pendingReads.data(), bufferSize)) { in waitForReads()
1208 for (size_t i = 0; i != *bufferSize; ++i) { in waitForReads()
1216 size_t* bufferSize) { in waitForReads() argument
1218 return waitForReads<incfs_pending_read_info2>(readFd, timeoutMs, buffer, bufferSize); in waitForReads()
1220 return waitForReads<incfs_pending_read_info>(readFd, timeoutMs, buffer, bufferSize); in waitForReads()
1224 IncFsReadInfo buffer[], size_t* bufferSize) { in IncFs_WaitForPendingReads() argument
1229 return waitForReads(control->pendingReads, timeoutMs, buffer, bufferSize); in IncFs_WaitForPendingReads()
1233 IncFsReadInfoWithUid buffer[], size_t* bufferSize) { in IncFs_WaitForPendingReadsWithUid() argument
1238 return waitForReads(control->pendingReads, timeoutMs, buffer, bufferSize); in IncFs_WaitForPendingReadsWithUid()
1242 IncFsReadInfo buffer[], size_t* bufferSize) { in IncFs_WaitForPageReads() argument
1247 return waitForReads(control->logs, timeoutMs, buffer, bufferSize); in IncFs_WaitForPageReads()
1251 IncFsReadInfoWithUid buffer[], size_t* bufferSize) { in IncFs_WaitForPageReadsWithUid() argument
1256 return waitForReads(control->logs, timeoutMs, buffer, bufferSize); in IncFs_WaitForPageReadsWithUid()
1725 IncFsUidReadTimeouts timeouts[], size_t* bufferSize) { in IncFs_GetUidReadTimeouts() argument
1726 if (!control || !bufferSize) { in IncFs_GetUidReadTimeouts()
1733 std::vector<incfs_per_uid_read_timeouts> argTimeouts(*bufferSize); in IncFs_GetUidReadTimeouts()
1740 *bufferSize = args.timeouts_array_size_out / sizeof(*argTimeouts.data()); in IncFs_GetUidReadTimeouts()
1745 *bufferSize = args.timeouts_array_size_out / sizeof(*argTimeouts.data()); in IncFs_GetUidReadTimeouts()
1746 for (size_t i = 0; i != *bufferSize; ++i) { in IncFs_GetUidReadTimeouts()
1824 size_t* bufferSize) { in IncFs_ListIncompleteFiles() argument
1825 if (!control || !bufferSize) { in IncFs_ListIncompleteFiles()
1838 if (index >= *bufferSize) { in IncFs_ListIncompleteFiles()
1849 *bufferSize = index; in IncFs_ListIncompleteFiles()