Changeset 4800 in vbox for trunk/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
- Timestamp:
- Sep 14, 2007 2:59:15 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 24502
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
r4071 r4800 201 201 * @returns VBOX error code on failure. 202 202 * @param uFunction IO Control function. 203 * @param pvIn Input data buffer. 204 * @param cbIn Size of input data. 205 * @param pvOut Output data buffer. 206 * @param cbOut Size of output data. 207 */ 208 int suplibOsIOCtl(unsigned uFunction, void *pvIn, size_t cbIn, void *pvOut, size_t cbOut) 203 * @param pvReq The request buffer. 204 * @param cbReq The size of the request buffer. 205 */ 206 int suplibOsIOCtl(uintptr_t uFunction, void *pvReq, size_t cbReq) 209 207 { 210 208 AssertMsg(g_hDevice != -1, ("SUPLIB not initiated successfully!\n")); 209 211 210 /* 212 211 * Issue device iocontrol. 213 212 */ 214 SUPDRVIOCTLDATA Args; 215 Args.pvIn = pvIn; 216 Args.cbIn = cbIn; 217 Args.pvOut = pvOut; 218 Args.cbOut = cbOut; 219 220 if (ioctl(g_hDevice, uFunction, &Args) >= 0) 213 if (RT_LIKELY(ioctl(g_hDevice, uFunction, pvReq) >= 0)) 221 214 return VINF_SUCCESS; 222 215
Note:
See TracChangeset
for help on using the changeset viewer.