Changeset 24467 in vbox for trunk/src/VBox
- Timestamp:
- Nov 6, 2009 5:01:09 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 54538
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMReq.cpp
r23191 r24467 72 72 * @param pfnFunction Pointer to the function to call. 73 73 * @param cArgs Number of arguments following in the ellipsis. 74 * Not possible to pass 64-bit arguments!75 74 * @param ... Function arguments. 75 * 76 * @remarks See remarks on VMR3ReqCallVU. 76 77 */ 77 78 VMMR3DECL(int) VMR3ReqCall(PVM pVM, VMCPUID idDstCpu, PVMREQ *ppReq, unsigned cMillies, uint32_t fFlags, … … 103 104 * @param pfnFunction Pointer to the function to call. 104 105 * @param cArgs Number of arguments following in the ellipsis. 105 * Not possible to pass 64-bit arguments!106 106 * @param ... Function arguments. 107 * 108 * @remarks See remarks on VMR3ReqCallVU. 107 109 */ 108 110 VMMR3DECL(int) VMR3ReqCallWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) … … 138 140 * @param pfnFunction Pointer to the function to call. 139 141 * @param cArgs Number of arguments following in the ellipsis. 140 * Not possible to pass 64-bit arguments!141 142 * @param ... Function arguments. 143 * 144 * @remarks See remarks on VMR3ReqCallVU. 142 145 */ 143 146 VMMR3DECL(int) VMR3ReqCallWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) … … 170 173 * @param pfnFunction Pointer to the function to call. 171 174 * @param cArgs Number of arguments following in the ellipsis. 172 * Not possible to pass 64-bit arguments!173 175 * @param ... Function arguments. 176 * 177 * @remarks See remarks on VMR3ReqCallVU. 174 178 */ 175 179 VMMR3DECL(int) VMR3ReqCallNoWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) … … 198 202 * @param pfnFunction Pointer to the function to call. 199 203 * @param cArgs Number of arguments following in the ellipsis. 200 * Not possible to pass 64-bit arguments!201 204 * @param ... Function arguments. 205 * 206 * @remarks See remarks on VMR3ReqCallVU. 202 207 */ 203 208 VMMR3DECL(int) VMR3ReqCallNoWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) … … 226 231 * @param pfnFunction Pointer to the function to call. 227 232 * @param cArgs Number of arguments following in the ellipsis. 228 * Not possible to pass 64-bit arguments!229 233 * @param ... Function arguments. 234 * 235 * @remarks See remarks on VMR3ReqCallVU. 230 236 */ 231 237 VMMR3DECL(int) VMR3ReqCallVoidWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) … … 256 262 * @param pfnFunction Pointer to the function to call. 257 263 * @param cArgs Number of arguments following in the ellipsis. 258 * Not possible to pass 64-bit arguments!259 264 * @param ... Function arguments. 265 * 266 * @remarks See remarks on VMR3ReqCallVU. 260 267 */ 261 268 VMMR3DECL(int) VMR3ReqCallVoidWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) … … 286 293 * @param pfnFunction Pointer to the function to call. 287 294 * @param cArgs Number of arguments following in the ellipsis. 288 * Not possible to pass 64-bit arguments!289 295 * @param ... Function arguments. 296 * 297 * @remarks See remarks on VMR3ReqCallVU. 290 298 */ 291 299 VMMR3DECL(int) VMR3ReqCallVoidNoWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) … … 316 324 * @param pfnFunction Pointer to the function to call. 317 325 * @param cArgs Number of arguments following in the ellipsis. 318 * Not possible to pass 64-bit arguments!319 326 * @param ... Function arguments. 327 * 328 * @remarks See remarks on VMR3ReqCallVU. 320 329 */ 321 330 VMMR3DECL(int) VMR3ReqCallVoidNoWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) … … 357 366 * @param pfnFunction Pointer to the function to call. 358 367 * @param cArgs Number of arguments following in the ellipsis. 359 * Not possible to pass 64-bit arguments!360 368 * @param ... Function arguments. 369 * 370 * @remarks See remarks on VMR3ReqCallVU. 361 371 */ 362 372 VMMR3DECL(int) VMR3ReqCallU(PUVM pUVM, VMCPUID idDstCpu, PVMREQ *ppReq, unsigned cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...) … … 397 407 * Stuff which differs in size from uintptr_t is gonna make trouble, so don't try! 398 408 * @param Args Argument vector. 409 * 410 * @remarks Caveats: 411 * - Do not pass anything which is larger than an uintptr_t. 412 * - 64-bit integers are larger than uintptr_t on 32-bit hosts. 413 * Pass integers > 32-bit by reference (pointers). 414 * - Don't use NULL since it should be the integer 0 in C++ and may 415 * therefore end up with garbage in the bits 63:32 on 64-bit 416 * hosts because 'int' is 32-bit. 417 * Use (void *)NULL or (uintptr_t)0 instead of NULL. 399 418 */ 400 419 VMMR3DECL(int) VMR3ReqCallVU(PUVM pUVM, VMCPUID idDstCpu, PVMREQ *ppReq, unsigned cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, va_list Args)
Note:
See TracChangeset
for help on using the changeset viewer.