VirtualBox

Ignore:
Timestamp:
Sep 14, 2007 2:59:15 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24502
Message:

Redid the supdrv interface. works on windows and linux while the other OSes still needs some adjusting/testing. internal networking is temporarily broken as the SUPCallVMMR0Ex interface is being reworked (this is what all this is really about).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp

    r4071 r4800  
    201201 * @returns VBOX error code on failure.
    202202 * @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 */
     206int suplibOsIOCtl(uintptr_t uFunction, void *pvReq, size_t cbReq)
    209207{
    210208    AssertMsg(g_hDevice != -1, ("SUPLIB not initiated successfully!\n"));
     209
    211210    /*
    212211     * Issue device iocontrol.
    213212     */
    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))
    221214        return VINF_SUCCESS;
    222215
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette