Changeset 27738 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Mar 26, 2010 1:21:55 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59368
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMAsyncCompletion.cpp
r26147 r27738 1023 1023 STAMUNIT_OCCURENCES, 1024 1024 "Nanosecond resolution runtime statistics", 1025 "/PDM/AsyncCompletion/File/%s/TaskRun Ns-%u-%u",1025 "/PDM/AsyncCompletion/File/%s/TaskRun1Ns-%u-%u", 1026 1026 RTPathFilename(pEndpoint->pszUri), 1027 1027 i*100, i*100+100-1); … … 1038 1038 STAMUNIT_OCCURENCES, 1039 1039 "Microsecond resolution runtime statistics", 1040 "/PDM/AsyncCompletion/File/%s/TaskRun MicroSec-%u-%u",1040 "/PDM/AsyncCompletion/File/%s/TaskRun2MicroSec-%u-%u", 1041 1041 RTPathFilename(pEndpoint->pszUri), 1042 1042 i*100, i*100+100-1); … … 1054 1054 STAMUNIT_OCCURENCES, 1055 1055 "Milliseconds resolution runtime statistics", 1056 "/PDM/AsyncCompletion/File/%s/TaskRun Ms-%u-%u",1056 "/PDM/AsyncCompletion/File/%s/TaskRun3Ms-%u-%u", 1057 1057 RTPathFilename(pEndpoint->pszUri), 1058 1058 i*100, i*100+100-1); … … 1070 1070 STAMUNIT_OCCURENCES, 1071 1071 "Second resolution runtime statistics", 1072 "/PDM/AsyncCompletion/File/%s/TaskRun Sec-%u-%u",1072 "/PDM/AsyncCompletion/File/%s/TaskRun4Sec-%u-%u", 1073 1073 RTPathFilename(pEndpoint->pszUri), 1074 1074 i*10, i*10+10-1); … … 1348 1348 AssertReturn(VALID_PTR(pcbSize), VERR_INVALID_POINTER); 1349 1349 1350 return pEndpoint->pEpClass->pEndpointOps->pfnEpGetSize(pEndpoint, pcbSize); 1350 if (pEndpoint->pEpClass->pEndpointOps->pfnEpGetSize) 1351 return pEndpoint->pEpClass->pEndpointOps->pfnEpGetSize(pEndpoint, pcbSize); 1352 else 1353 return VERR_NOT_SUPPORTED; 1354 } 1355 1356 VMMR3DECL(int) PDMR3AsyncCompletionEpSetSize(PPDMASYNCCOMPLETIONENDPOINT pEndpoint, 1357 uint64_t cbSize) 1358 { 1359 AssertReturn(VALID_PTR(pEndpoint), VERR_INVALID_POINTER); 1360 1361 if (pEndpoint->pEpClass->pEndpointOps->pfnEpSetSize) 1362 return pEndpoint->pEpClass->pEndpointOps->pfnEpSetSize(pEndpoint, cbSize); 1363 else 1364 return VERR_NOT_SUPPORTED; 1351 1365 } 1352 1366 -
trunk/src/VBox/VMM/PDMAsyncCompletionFile.cpp
r27656 r27738 1106 1106 1107 1107 return VINF_SUCCESS; 1108 } 1109 1110 static int pdmacFileEpSetSize(PPDMASYNCCOMPLETIONENDPOINT pEndpoint, uint64_t cbSize) 1111 { 1112 PPDMASYNCCOMPLETIONENDPOINTFILE pEpFile = (PPDMASYNCCOMPLETIONENDPOINTFILE)pEndpoint; 1113 1114 ASMAtomicWriteU64(&pEpFile->cbEndpoint, cbSize); 1115 return RTFileSetSize(pEpFile->File, cbSize); 1108 1116 } 1109 1117 … … 1138 1146 /* pfnEpGetSize */ 1139 1147 pdmacFileEpGetSize, 1148 /* pfnEpSetSize */ 1149 pdmacFileEpSetSize, 1140 1150 /* u32VersionEnd */ 1141 1151 PDMAC_EPCLASS_OPS_VERSION -
trunk/src/VBox/VMM/PDMAsyncCompletionInternal.h
r26147 r27738 143 143 144 144 /** 145 * Initiates a flush request on the given endpoint.145 * Queries the size of the endpoint. Optional. 146 146 * 147 147 * @returns VBox status code. … … 151 151 DECLR3CALLBACKMEMBER(int, pfnEpGetSize, (PPDMASYNCCOMPLETIONENDPOINT pEndpoint, 152 152 uint64_t *pcbSize)); 153 154 /** 155 * Sets the size of the endpoint. Optional. 156 * This is a synchronous operation. 157 * 158 * 159 * @returns VBox status code. 160 * @param pEndpoint Endpoint the request is for. 161 * @param cbSize New size for the endpoint. 162 */ 163 DECLR3CALLBACKMEMBER(int, pfnEpSetSize, (PPDMASYNCCOMPLETIONENDPOINT pEndpoint, 164 uint64_t cbSize)); 153 165 154 166 /** Initialization safety marker. */
Note:
See TracChangeset
for help on using the changeset viewer.