Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

int _init ( void   ) 

Kernel entry points

Definition at line 140 of file vboxvideo_drm.c.

References DEVICE_NAME, g_pVBoxVideoSolarisState, g_VBoxVideoSolarisDRMDriver, g_VBoxVideoSolarisModLinkage, LogFlow, and LogRel.

{
    LogFlow((DEVICE_NAME ":_init flow\n"));
    cmn_err(CE_NOTE, DEVICE_NAME ":_init\n");

    vboxVideoSolarisConfigure(&g_VBoxVideoSolarisDRMDriver);
    int rc = ddi_soft_state_init(&g_pVBoxVideoSolarisState, sizeof(drm_device_t), DRM_MAX_INSTANCES);
    if (!rc)
        return mod_install(&g_VBoxVideoSolarisModLinkage);
    else
        LogRel((DEVICE_NAME ":_init: ddi_soft_state_init failed. rc=%d\n", rc));
}


Generated by  Doxygen 1.6.0   Back to index