- Timestamp:
- Jul 28, 2021 10:13:15 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
include/VBox/vmm/pdmdev.h (modified) (10 diffs)
-
include/VBox/vmm/pdmdrv.h (modified) (1 diff)
-
src/VBox/VMM/VMMR0/PDMR0Driver.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdev.h
r90364 r90382 7860 7860 7861 7861 /** 7862 * @copydoc PDMCritSectEnter 7862 * Enters a PDM critical section. 7863 * 7864 * @returns VINF_SUCCESS if entered successfully. 7865 * @returns rcBusy when encountering a busy critical section in RC/R0. 7866 * @retval VERR_SEM_DESTROYED if the critical section is delete before or 7867 * during the operation. 7868 * 7869 * @param pDevIns The device instance. 7870 * @param pCritSect The PDM critical section to enter. 7871 * @param rcBusy The status code to return when we're in RC or R0 7872 * and the section is busy. Pass VINF_SUCCESS to 7873 * acquired the critical section thru a ring-3 7874 * call if necessary. 7875 * @sa PDMCritSectEnter 7876 */ 7877 DECLINLINE(int) PDMDevHlpCritSectEnter(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, int rcBusy) 7878 { 7879 return pDevIns->CTX_SUFF(pHlp)->pfnCritSectEnter(pDevIns, pCritSect, rcBusy); 7880 } 7881 7882 /** 7883 * Enters a PDM critical section, with location information for debugging. 7884 * 7885 * @returns VINF_SUCCESS if entered successfully. 7886 * @returns rcBusy when encountering a busy critical section in RC/R0. 7887 * @retval VERR_SEM_DESTROYED if the critical section is delete before or 7888 * during the operation. 7889 * 7863 7890 * @param pDevIns The device instance. 7864 */ 7865 DECLINLINE(int) PDMDevHlpCritSectEnter(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, int rcBusy) 7866 { 7867 return pDevIns->CTX_SUFF(pHlp)->pfnCritSectEnter(pDevIns, pCritSect, rcBusy); 7868 } 7869 7870 /** 7871 * @copydoc PDMCritSectEnterDebug 7872 * @param pDevIns The device instance. 7891 * @param pCritSect The PDM critical section to enter. 7892 * @param rcBusy The status code to return when we're in RC or R0 7893 * and the section is busy. Pass VINF_SUCCESS to 7894 * acquired the critical section thru a ring-3 7895 * call if necessary. 7896 * @param uId Some kind of locking location ID. Typically a 7897 * return address up the stack. Optional (0). 7898 * @param SRC_POS The source position where to lock is being 7899 * acquired from. Optional. 7900 * @sa PDMCritSectEnterDebug 7873 7901 */ 7874 7902 DECLINLINE(int) PDMDevHlpCritSectEnterDebug(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, int rcBusy, RTHCUINTPTR uId, RT_SRC_POS_DECL) … … 7878 7906 7879 7907 /** 7880 * @copydoc PDMCritSectTryEnter 7881 * @param pDevIns The device instance. 7908 * Try enter a critical section. 7909 * 7910 * @retval VINF_SUCCESS on success. 7911 * @retval VERR_SEM_BUSY if the critsect was owned. 7912 * @retval VERR_SEM_NESTED if nested enter on a no nesting section. (Asserted.) 7913 * @retval VERR_SEM_DESTROYED if the critical section is delete before or 7914 * during the operation. 7915 * 7916 * @param pDevIns The device instance. 7917 * @param pCritSect The critical section. 7918 * @sa PDMCritSectTryEnter 7882 7919 */ 7883 7920 DECLINLINE(int) PDMDevHlpCritSectTryEnter(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect) … … 7887 7924 7888 7925 /** 7889 * @copydoc PDMCritSectTryEnterDebug 7890 * @param pDevIns The device instance. 7926 * Try enter a critical section, with location information for debugging. 7927 * 7928 * @retval VINF_SUCCESS on success. 7929 * @retval VERR_SEM_BUSY if the critsect was owned. 7930 * @retval VERR_SEM_NESTED if nested enter on a no nesting section. (Asserted.) 7931 * @retval VERR_SEM_DESTROYED if the critical section is delete before or 7932 * during the operation. 7933 * 7934 * @param pDevIns The device instance. 7935 * @param pCritSect The critical section. 7936 * @param uId Some kind of locking location ID. Typically a 7937 * return address up the stack. Optional (0). 7938 * @param SRC_POS The source position where to lock is being 7939 * acquired from. Optional. 7940 * @sa PDMCritSectTryEnterDebug 7891 7941 */ 7892 7942 DECLINLINE(int) PDMDevHlpCritSectTryEnterDebug(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, RTHCUINTPTR uId, RT_SRC_POS_DECL) … … 7896 7946 7897 7947 /** 7898 * @copydoc PDMCritSectLeave 7899 * @param pDevIns The device instance. 7948 * Leaves a critical section entered with PDMCritSectEnter(). 7949 * 7950 * @returns Indication whether we really exited the critical section. 7951 * @retval VINF_SUCCESS if we really exited. 7952 * @retval VINF_SEM_NESTED if we only reduced the nesting count. 7953 * @retval VERR_NOT_OWNER if you somehow ignore release assertions. 7954 * 7955 * @param pDevIns The device instance. 7956 * @param pCritSect The PDM critical section to leave. 7957 * @sa PDMCritSectLeave 7900 7958 */ 7901 7959 DECLINLINE(int) PDMDevHlpCritSectLeave(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect) … … 7905 7963 7906 7964 /** 7907 * @copydoc PDMCritSectIsOwner 7908 * @param pDevIns The device instance. 7965 * @see PDMCritSectIsOwner 7909 7966 */ 7910 7967 DECLINLINE(bool) PDMDevHlpCritSectIsOwner(PPDMDEVINS pDevIns, PCPDMCRITSECT pCritSect) … … 7914 7971 7915 7972 /** 7916 * @copydoc PDMCritSectIsInitialized 7917 * @param pDevIns The device instance. 7973 * @see PDMCritSectIsInitialized 7918 7974 */ 7919 7975 DECLINLINE(bool) PDMDevHlpCritSectIsInitialized(PPDMDEVINS pDevIns, PCPDMCRITSECT pCritSect) … … 7923 7979 7924 7980 /** 7925 * @copydoc PDMCritSectHasWaiters 7926 * @param pDevIns The device instance. 7981 * @see PDMCritSectHasWaiters 7927 7982 */ 7928 7983 DECLINLINE(bool) PDMDevHlpCritSectHasWaiters(PPDMDEVINS pDevIns, PCPDMCRITSECT pCritSect) … … 7932 7987 7933 7988 /** 7934 * @copydoc PDMCritSectGetRecursion 7935 * @param pDevIns The device instance. 7989 * @see PDMCritSectGetRecursion 7936 7990 */ 7937 7991 DECLINLINE(uint32_t) PDMDevHlpCritSectGetRecursion(PPDMDEVINS pDevIns, PCPDMCRITSECT pCritSect) … … 7942 7996 #if defined(IN_RING3) || defined(IN_RING0) 7943 7997 /** 7944 * @copydoc PDMHCCritSectScheduleExitEvent 7945 * @param pDevIns The device instance. 7998 * @see PDMHCCritSectScheduleExitEvent 7946 7999 */ 7947 8000 DECLINLINE(int) PDMDevHlpCritSectScheduleExitEvent(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, SUPSEMEVENT hEventToSignal) … … 7965 8018 7966 8019 /** 7967 * @copydoc PDMR3CritSectDelete 7968 * @param pDevIns The device instance. 8020 * Deletes the critical section. 8021 * 8022 * @returns VBox status code. 8023 * @param pDevIns The device instance. 8024 * @param pCritSect The PDM critical section to destroy. 8025 * @sa PDMR3CritSectDelete 7969 8026 */ 7970 8027 DECLINLINE(int) PDMDevHlpCritSectDelete(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect) -
trunk/include/VBox/vmm/pdmdrv.h
r90346 r90382 1241 1241 * @returns VBox status code. 1242 1242 * @param pDrvIns The driver instance. 1243 * @param p cszBwGroupName of the bandwidth group to attach to.1243 * @param pszBwGroup Name of the bandwidth group to attach to. 1244 1244 * @param pFilter Pointer to the filter we attach. 1245 1245 */ -
trunk/src/VBox/VMM/VMMR0/PDMR0Driver.cpp
r90346 r90382 189 189 190 190 191 /** @interface_method_impl{PDMDRVHLPR0,pfn } */191 /** @interface_method_impl{PDMDRVHLPR0,pfnCritSectScheduleExitEvent} */ 192 192 static DECLCALLBACK(int) pdmR0DrvHlp_CritSectScheduleExitEvent(PPDMDRVINS pDrvIns, PPDMCRITSECT pCritSect, 193 193 SUPSEMEVENT hEventToSignal)
Note:
See TracChangeset
for help on using the changeset viewer.

