VirtualBox

Changeset 12945 in vbox for trunk


Ignore:
Timestamp:
Oct 2, 2008 3:43:25 PM (16 years ago)
Author:
vboxsync
Message:

vbi v3

Location:
trunk/src/VBox/Runtime/r0drv/solaris/vbi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/os/vbi.c

    r11768 r12945  
    7979
    8080static struct modlmisc vbi_modlmisc = {
    81         &mod_miscops, "Vbox Interfaces Ver 2"
     81        &mod_miscops, "Vbox Interfaces Ver 3"
    8282};
    8383
     
    822822}
    823823
    824 /*
    825  * This is revision 2 of the interface. As more functions are added,
    826  * they should go after this point in the file and the revision level
    827  * increased.
    828  */
    829 uint_t vbi_revision_level = 2;
     824
     825/*
     826 * This is revision 2 of the interface.
     827 */
    830828
    831829struct vbi_cpu_watch {
     
    10401038        kmem_free(t, sizeof (*t));
    10411039}
     1040
     1041/*
     1042 * This is revision 3 of the interface. As more functions are added,
     1043 * they should go after this point in the file and the revision level
     1044 * increased.
     1045 */
     1046uint_t vbi_revision_level = 3;
     1047
     1048int
     1049vbi_is_preempt_enabled(void)
     1050{
     1051        return (curthread->t_preempt == 0);
     1052}
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/sys/vbi.h

    r10954 r12945  
    2727#ifndef _SYS_VBI_H
    2828#define _SYS_VBI_H
    29 
    30 #pragma ident   "%Z%%M% %I%     %E% SMI"
    3129
    3230#ifdef  __cplusplus
     
    292290/* end of interfaces defined for version 2 */
    293291
     292/* begin interfaces defined for version 3 */
     293
     294/*
     295 * returns non-zero if the thread might be preempted at any time
     296 */
     297extern int vbi_is_preempt_enabled(void);
     298
     299/* end of interfaces defined for version 3 */
     300
    294301#ifdef  __cplusplus
    295302}
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