VirtualBox

Ignore:
Timestamp:
Jan 2, 2015 12:32:53 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97444
Message:

VBoxDTrace: implemented a bunch of glue and reduced the required solaris glue. (r44)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h

    r53665 r53667  
    230230
    231231
    232 typedef struct VBoxDtProcess
     232typedef struct VBoxDtProcess    proc_t;
     233# if 0 /* not needed ? */
     234struct VBoxDtProcess    proc_t;
    233235{
    234     uint32_t                p_flag;
     236/*    uint32_t                p_flag; - don't bother with this */
    235237    RTPROCESS               p_pid;
    236238    struct dtrace_helpers  *p_dtrace_helpers;
    237     struct VBoxDtCred      *p_cred;
    238 } proc_t;
     239}
    239240proc_t *VBoxDtGetCurrentProc(void);
    240 #define curproc                     (VBoxDtGetCurrentProc())
    241 
    242 #define SNOCD                   RT_BIT(0)
    243 
     241# define curproc                 (VBoxDtGetCurrentProc())
     242/*# define SNOCD                  RT_BIT(0) - don't bother with this */
     243# endif
    244244
    245245typedef struct VBoxDtTaskQueue  taskq_t;
     
    331331
    332332
    333 typedef struct VBoxDtVMem
    334 {
    335     size_t                  cbTodo;
    336     void                   *pvTodo;
    337 } vmem_t;
     333typedef struct VBoxDtVMem       vmem_t;
    338334#define VM_SLEEP                RT_BIT(0)
    339335#define VM_BESTFIT              RT_BIT(1)
     
    372368 * DDI
    373369 */
    374 #define DDI_SUCCESS                 (0)
    375 #define DDI_FAILURE                 (-1)
    376 #define ddi_soft_state_init         VBoxDtDdiSoftStateInit
    377 #define ddi_soft_state_fini         VBoxDtDdiSoftStateTerm
    378 #define ddi_soft_state_zalloc       VBoxDtDdiSoftStateAllocZ
    379 #define ddi_get_soft_state          VBoxDtDdiSoftStateGet
    380 #define ddi_soft_state_free         VBoxDtDdiSoftStateFree
     370# define DDI_SUCCESS                (0)
     371# define DDI_FAILURE                (-1)
     372# if 0 /* not needed */
     373# define ddi_soft_state_init        VBoxDtDdiSoftStateInit
     374# define ddi_soft_state_fini        VBoxDtDdiSoftStateTerm
     375# define ddi_soft_state_zalloc      VBoxDtDdiSoftStateAllocZ
     376# define ddi_get_soft_state         VBoxDtDdiSoftStateGet
     377# define ddi_soft_state_free        VBoxDtDdiSoftStateFree
    381378int   VBoxDtDdiSoftStateInit(void **ppvSoftStates, size_t cbSoftState, uint32_t cMaxItems);
    382379int   VBoxDtDdiSoftStateTerm(void **ppvSoftStates);
     
    384381int   VBoxDtDdiSoftStateFree(void *pvSoftStates, RTDEV uMinor);
    385382void *VBoxDtDdiSoftStateGet(void *pvSoftStates, RTDEV uMinor);
    386 
    387 typedef struct VBoxDtDevInfo        dev_info_t;
     383# endif
     384
    388385typedef enum { DDI_ATT_CMD_DUMMY }  ddi_attach_cmd_t;
    389386typedef enum { DDI_DETACH, DDI_SUSPEND }  ddi_detach_cmd_t;
    390 #define ddi_driver_major            VBoxDtDdiDriverMajor
    391 #define ddi_report_dev              VBoxDtDdiReportDev
     387# if 0 /* not needed */
     388typedef struct VBoxDtDevInfo        dev_info_t;
     389# define ddi_driver_major           VBoxDtDdiDriverMajor
     390# define ddi_report_dev             VBoxDtDdiReportDev
    392391major_t VBoxDtDdiDriverMajor(struct VBoxDtDevInfo *pDevInfo);
    393392void    VBoxDtDdiReportDev(struct VBoxDtDevInfo *pDevInfo);
     393# endif
    394394
    395395/*
    396396 * DTrace bits we've made external.
    397397 */
    398 extern int dtrace_attach(dev_info_t *devi, ddi_attach_cmd_t cmd);
    399 extern int dtrace_detach(dev_info_t *dip, ddi_detach_cmd_t cmd);
    400 extern int dtrace_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *cr, int *rv);
     398extern int dtrace_attach(ddi_attach_cmd_t cmd);
     399extern int dtrace_detach(ddi_detach_cmd_t cmd);
     400struct dtrace_state;
     401extern int dtrace_open(struct dtrace_state **ppState, struct VBoxDtCred *cred_p);
     402extern int dtrace_ioctl(struct dtrace_state *state, int cmd, intptr_t arg, int32_t *rv);
     403extern int dtrace_close(struct dtrace_state *state);
    401404
    402405#endif /* IN_RING0 */
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