VirtualBox

Ignore:
Timestamp:
Oct 20, 2015 1:58:41 PM (9 years ago)
Author:
vboxsync
Message:

HostDrivers: Doxygen fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c

    r57358 r58340  
    7575static d_open_t     VBoxDrvFreeBSDOpenUsr;
    7676static d_open_t     VBoxDrvFreeBSDOpenSys;
    77 static void         VBoxDrvFreeBSDDtr(void *pData);
     77static void         VBoxDrvFreeBSDDtr(void *pvData);
    7878static d_ioctl_t    VBoxDrvFreeBSDIOCtl;
    7979static int          VBoxDrvFreeBSDIOCtlSlow(PSUPDRVSESSION pSession, u_long ulCmd, caddr_t pvData, struct thread *pTd);
     
    225225 * @returns 0 on success, errno on failure.
    226226 *          EBUSY if the device is used by someone else.
    227  * @param   pDev        The device node.
    228  * @param   fOpen       The open flags.
    229  * @param   pTd         The thread.
    230  * @param   iDevType    ???
    231  */
    232 static int vboxdrvFreeBSDOpenCommon(struct cdev *pDev, int fOpen, int iDevtype, struct thread *pTd, bool fUnrestricted)
     227 * @param   pDev            The device node.
     228 * @param   fOpen           The open flags.
     229 * @param   iDevType        Some device type thing we don't use.
     230 * @param   pTd             The thread.
     231 * @param   fUnrestricted   Set if opening /dev/vboxdrv, clear if /dev/vboxdrvu.
     232 */
     233static int vboxdrvFreeBSDOpenCommon(struct cdev *pDev, int fOpen, int iDevType, struct thread *pTd, bool fUnrestricted)
    233234{
    234235    PSUPDRVSESSION pSession;
     
    253254        pSession->Uid = stuff;
    254255        pSession->Gid = stuff; */
    255         devfs_set_cdevpriv(pSession, VBoxDrvFreeBSDDtr);
     256        rc = devfs_set_cdevpriv(pSession, vboxdrvFreeBSDDtr); Assert(rc == 0);
    256257        Log(("VBoxDrvFreeBSDOpen: pSession=%p\n", pSession));
    257258        ASMAtomicIncU32(&g_cUsers);
     
    264265
    265266/** For vboxdrv. */
    266 static int VBoxDrvFreeBSDOpenSys(struct cdev *pDev, int fOpen, int iDevtype, struct thread *pTd)
    267 {
    268     return vboxdrvFreeBSDOpenCommon(pDev, fOpen, iDevtype, pTd, true);
     267static int VBoxDrvFreeBSDOpenSys(struct cdev *pDev, int fOpen, int iDevType, struct thread *pTd)
     268{
     269    return vboxdrvFreeBSDOpenCommon(pDev, fOpen, iDevType, pTd, true);
    269270}
    270271
    271272
    272273/** For vboxdrvu. */
    273 static int VBoxDrvFreeBSDOpenUsr(struct cdev *pDev, int fOpen, int iDevtype, struct thread *pTd)
    274 {
    275     return vboxdrvFreeBSDOpenCommon(pDev, fOpen, iDevtype, pTd, false);
    276 }
    277 
    278 
    279 /**
    280  * Close a file device previously opened by VBoxDrvFreeBSDOpen
     274static int VBoxDrvFreeBSDOpenUsr(struct cdev *pDev, int fOpen, int iDevType, struct thread *pTd)
     275{
     276    return vboxdrvFreeBSDOpenCommon(pDev, fOpen, iDevType, pTd, false);
     277}
     278
     279
     280/**
     281 * Close a file device previously opened by VBoxDrvFreeBSDOpen.
    281282 *
    282283 * @returns 0 on success.
    283  * @param   pDev        The device.
    284  * @param   fFile       The file descriptor flags.
    285  * @param   DevType     The device type (CHR.
    286  * @param   pTd         The calling thread.
    287  */
    288 static void VBoxDrvFreeBSDDtr(void *pData)
    289 {
    290     PSUPDRVSESSION pSession = pData;
    291     Log(("VBoxDrvFreeBSDDtr: pSession=%p\n", pSession));
     284 * @param   pvData      The session being closed.
     285 */
     286static void vboxdrvFreeBSDDtr(void *pvData)
     287{
     288    PSUPDRVSESSION pSession = pvData;
     289    Log(("vboxdrvFreeBSDDtr: pSession=%p\n", pSession));
    292290
    293291    /*
     
    469467 *
    470468 * @returns VBox status code, see supdrvIDC.
    471  * @param   iReq        The request code.
     469 * @param   uReq        The request code.
    472470 * @param   pReq        The request.
    473471 */
Note: See TracChangeset for help on using the changeset viewer.

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