Changeset 63992 in vbox for trunk/src/VBox/Devices/Storage/VSCSI/VSCSIInternal.h
- Timestamp:
- Sep 25, 2016 5:58:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VSCSI/VSCSIInternal.h
r62506 r63992 321 321 322 322 /** 323 * Inits the I/O request related state for the LUN. 324 * 325 * @returns VBox status code. 326 * @param pVScsiLun The LUN instance. 327 */ 328 int vscsiIoReqInit(PVSCSILUNINT pVScsiLun); 329 330 /** 323 331 * Enqueues a new flush request 324 332 * … … 364 372 365 373 /** 374 * Wrapper for the set I/O request allocation size I/O callback. 375 * 376 * @returns VBox status code. 377 * @param pVScsiLun The LUN. 378 * @param cbVScsiIoReqAlloc The additional size for the request to allocate. 379 */ 380 DECLINLINE(int) vscsiLunReqAllocSizeSet(PVSCSILUNINT pVScsiLun, size_t cbVScsiIoReqAlloc) 381 { 382 return pVScsiLun->pVScsiLunIoCallbacks->pfnVScsiLunReqAllocSizeSet(pVScsiLun, 383 pVScsiLun->pvVScsiLunUser, 384 cbVScsiIoReqAlloc); 385 } 386 387 /** 388 * Wrapper for the allocate I/O request I/O callback. 389 * 390 * @returns VBox status code. 391 * @param pVScsiLun The LUN. 392 * @param u64Tag A unique tag to assign to the request. 393 * @param ppVScsiIoReq Where to store the pointer to the request on success. 394 */ 395 DECLINLINE(int) vscsiLunReqAlloc(PVSCSILUNINT pVScsiLun, uint64_t u64Tag, PVSCSIIOREQINT *ppVScsiIoReq) 396 { 397 return pVScsiLun->pVScsiLunIoCallbacks->pfnVScsiLunReqAlloc(pVScsiLun, 398 pVScsiLun->pvVScsiLunUser, 399 u64Tag, ppVScsiIoReq); 400 } 401 402 /** 403 * Wrapper for the free I/O request I/O callback. 404 * 405 * @returns VBox status code. 406 * @param pVScsiLun The LUN. 407 * @param pVScsiIoReq The request to free. 408 */ 409 DECLINLINE(int) vscsiLunReqFree(PVSCSILUNINT pVScsiLun, PVSCSIIOREQINT pVScsiIoReq) 410 { 411 return pVScsiLun->pVScsiLunIoCallbacks->pfnVScsiLunReqFree(pVScsiLun, 412 pVScsiLun->pvVScsiLunUser, 413 pVScsiIoReq); 414 } 415 416 /** 366 417 * Wrapper for the get medium size I/O callback. 367 418 *
Note:
See TracChangeset
for help on using the changeset viewer.