Changeset 36555 in vbox for trunk/src/VBox/Runtime/include
- Timestamp:
- Apr 5, 2011 12:34:09 PM (14 years ago)
- Location:
- trunk/src/VBox/Runtime/include/internal
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/include/internal/assert.h
r28800 r36555 43 43 * @param pszFunction Location function name. 44 44 */ 45 voidrtR0AssertNativeMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction);45 DECLHIDDEN(void) rtR0AssertNativeMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction); 46 46 47 47 /** … … 54 54 * @param va Arguments to that string. 55 55 */ 56 voidrtR0AssertNativeMsg2V(bool fInitial, const char *pszFormat, va_list va);56 DECLHIDDEN(void) rtR0AssertNativeMsg2V(bool fInitial, const char *pszFormat, va_list va); 57 57 58 58 #endif -
trunk/src/VBox/Runtime/include/internal/initterm.h
r33540 r36555 39 39 * @returns IPRT status code. 40 40 */ 41 intrtR0InitNative(void);41 DECLHIDDEN(int) rtR0InitNative(void); 42 42 43 43 /** 44 44 * Platform specific termination. 45 45 */ 46 voidrtR0TermNative(void);46 DECLHIDDEN(void) rtR0TermNative(void); 47 47 48 48 #endif /* IN_RING0 */ -
trunk/src/VBox/Runtime/include/internal/memobj.h
r33540 r36555 1 /* $ Revision$ */1 /* $Id$ */ 2 2 /** @file 3 3 * IPRT - Ring-0 Memory Objects. … … 5 5 6 6 /* 7 * Copyright (C) 2006-20 07Oracle Corporation7 * Copyright (C) 2006-2011 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 288 288 * @param pMem The ring-0 memory object handle to the memory which should be freed. 289 289 */ 290 intrtR0MemObjNativeFree(PRTR0MEMOBJINTERNAL pMem);290 DECLHIDDEN(int) rtR0MemObjNativeFree(PRTR0MEMOBJINTERNAL pMem); 291 291 292 292 /** … … 300 300 * @param fExecutable Flag indicating whether it should be permitted to executed code in the memory object. 301 301 */ 302 intrtR0MemObjNativeAllocPage(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, bool fExecutable);302 DECLHIDDEN(int) rtR0MemObjNativeAllocPage(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, bool fExecutable); 303 303 304 304 /** … … 312 312 * @param fExecutable Flag indicating whether it should be permitted to executed code in the memory object. 313 313 */ 314 intrtR0MemObjNativeAllocLow(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, bool fExecutable);314 DECLHIDDEN(int) rtR0MemObjNativeAllocLow(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, bool fExecutable); 315 315 316 316 /** … … 324 324 * @param fExecutable Flag indicating whether it should be permitted to executed code in the memory object. 325 325 */ 326 intrtR0MemObjNativeAllocCont(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, bool fExecutable);326 DECLHIDDEN(int) rtR0MemObjNativeAllocCont(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, bool fExecutable); 327 327 328 328 /** … … 337 337 * @param R0Process The process to lock pages in. 338 338 */ 339 intrtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process);339 DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process); 340 340 341 341 /** … … 349 349 * and RTMEM_PROT_WRITE. 350 350 */ 351 intrtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess);351 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess); 352 352 353 353 /** … … 363 363 * Supported values are PAGE_SIZE, _2M, _4M and _1G. 364 364 */ 365 intrtR0MemObjNativeAllocPhys(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest, size_t uAlignment);365 DECLHIDDEN(int) rtR0MemObjNativeAllocPhys(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest, size_t uAlignment); 366 366 367 367 /** … … 376 376 * NIL_RTHCPHYS if any address is acceptable. 377 377 */ 378 intrtR0MemObjNativeAllocPhysNC(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest);378 DECLHIDDEN(int) rtR0MemObjNativeAllocPhysNC(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest); 379 379 380 380 /** … … 387 387 * @param uCachePolicy One of the RTMEM_CACHE_XXX modes. 388 388 */ 389 intrtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy);389 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy); 390 390 391 391 /** … … 399 399 * @param uAlignment The alignment of the reserved memory; PAGE_SIZE, _2M or _4M. 400 400 */ 401 intrtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment);401 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment); 402 402 403 403 /** … … 411 411 * @param R0Process The process to reserve the memory in. 412 412 */ 413 intrtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process);413 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process); 414 414 415 415 /** … … 431 431 * page aligned. 432 432 */ 433 intrtR0MemObjNativeMapKernel(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, void *pvFixed, size_t uAlignment,434 unsigned fProt, size_t offSub, size_t cbSub);433 DECLHIDDEN(int) rtR0MemObjNativeMapKernel(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, void *pvFixed, size_t uAlignment, 434 unsigned fProt, size_t offSub, size_t cbSub); 435 435 436 436 /** … … 445 445 * @param R0Process The process to map the memory into. 446 446 */ 447 intrtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, PRTR0MEMOBJINTERNAL pMemToMap, RTR3PTR R3PtrFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process);447 DECLHIDDEN(int) rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, PRTR0MEMOBJINTERNAL pMemToMap, RTR3PTR R3PtrFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process); 448 448 449 449 /** … … 459 459 * @param fProt Combination of RTMEM_PROT_* flags. 460 460 */ 461 intrtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, size_t cbSub, uint32_t fProt);461 DECLHIDDEN(int) rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, size_t cbSub, uint32_t fProt); 462 462 463 463 /** … … 471 471 * @param iPage The page number within the object (valid). 472 472 */ 473 RTHCPHYSrtR0MemObjNativeGetPagePhysAddr(PRTR0MEMOBJINTERNAL pMem, size_t iPage);474 475 PRTR0MEMOBJINTERNALrtR0MemObjNew(size_t cbSelf, RTR0MEMOBJTYPE enmType, void *pv, size_t cb);476 voidrtR0MemObjDelete(PRTR0MEMOBJINTERNAL pMem);473 DECLHIDDEN(RTHCPHYS) rtR0MemObjNativeGetPagePhysAddr(PRTR0MEMOBJINTERNAL pMem, size_t iPage); 474 475 DECLHIDDEN(PRTR0MEMOBJINTERNAL) rtR0MemObjNew(size_t cbSelf, RTR0MEMOBJTYPE enmType, void *pv, size_t cb); 476 DECLHIDDEN(void) rtR0MemObjDelete(PRTR0MEMOBJINTERNAL pMem); 477 477 478 478 /** @} */ -
trunk/src/VBox/Runtime/include/internal/process.h
r36549 r36555 50 50 * @remark Located in sched. 51 51 */ 52 intrtProcNativeSetPriority(RTPROCPRIORITY enmPriority);52 DECLHIDDEN(int) rtProcNativeSetPriority(RTPROCPRIORITY enmPriority); 53 53 54 54 /** -
trunk/src/VBox/Runtime/include/internal/rand.h
r33540 r36555 159 159 RT_C_DECLS_BEGIN 160 160 161 /** 162 * Initialize OS facilities for generating random bytes. 163 */ 164 void rtRandLazyInitNative(void); 165 166 /** 167 * Generate random bytes using OS facilities. 168 * 169 * @returns VINF_SUCCESS on success, some error status code on failure. 170 * @param pv Where to store the random bytes. 171 * @param cb How many random bytes to store. 172 */ 173 int rtRandGenBytesNative(void *pv, size_t cb); 174 175 void rtRandGenBytesFallback(void *pv, size_t cb) RT_NO_THROW; 176 177 DECLCALLBACK(void) rtRandAdvSynthesizeBytesFromU32(PRTRANDINT pThis, uint8_t *pb, size_t cb); 178 DECLCALLBACK(void) rtRandAdvSynthesizeBytesFromU64(PRTRANDINT pThis, uint8_t *pb, size_t cb); 179 DECLCALLBACK(uint32_t) rtRandAdvSynthesizeU32FromBytes(PRTRANDINT pThis, uint32_t u32First, uint32_t u32Last); 180 DECLCALLBACK(uint32_t) rtRandAdvSynthesizeU32FromU64(PRTRANDINT pThis, uint32_t u32First, uint32_t u32Last); 181 DECLCALLBACK(uint64_t) rtRandAdvSynthesizeU64FromBytes(PRTRANDINT pThis, uint64_t u64First, uint64_t u64Last); 182 DECLCALLBACK(uint64_t) rtRandAdvSynthesizeU64FromU32(PRTRANDINT pThis, uint64_t u64First, uint64_t u64Last); 183 DECLCALLBACK(int) rtRandAdvStubSeed(PRTRANDINT pThis, uint64_t u64Seed); 184 DECLCALLBACK(int) rtRandAdvStubSaveState(PRTRANDINT pThis, char *pszState, size_t *pcbState); 185 DECLCALLBACK(int) rtRandAdvStubRestoreState(PRTRANDINT pThis, char const *pszState); 186 DECLCALLBACK(int) rtRandAdvDefaultDestroy(PRTRANDINT pThis); 161 DECLHIDDEN(DECLCALLBACK(void)) rtRandAdvSynthesizeBytesFromU32(PRTRANDINT pThis, uint8_t *pb, size_t cb); 162 DECLHIDDEN(DECLCALLBACK(void)) rtRandAdvSynthesizeBytesFromU64(PRTRANDINT pThis, uint8_t *pb, size_t cb); 163 DECLHIDDEN(DECLCALLBACK(uint32_t)) rtRandAdvSynthesizeU32FromBytes(PRTRANDINT pThis, uint32_t u32First, uint32_t u32Last); 164 DECLHIDDEN(DECLCALLBACK(uint32_t)) rtRandAdvSynthesizeU32FromU64(PRTRANDINT pThis, uint32_t u32First, uint32_t u32Last); 165 DECLHIDDEN(DECLCALLBACK(uint64_t)) rtRandAdvSynthesizeU64FromBytes(PRTRANDINT pThis, uint64_t u64First, uint64_t u64Last); 166 DECLHIDDEN(DECLCALLBACK(uint64_t)) rtRandAdvSynthesizeU64FromU32(PRTRANDINT pThis, uint64_t u64First, uint64_t u64Last); 167 DECLHIDDEN(DECLCALLBACK(int)) rtRandAdvStubSeed(PRTRANDINT pThis, uint64_t u64Seed); 168 DECLHIDDEN(DECLCALLBACK(int)) rtRandAdvStubSaveState(PRTRANDINT pThis, char *pszState, size_t *pcbState); 169 DECLHIDDEN(DECLCALLBACK(int)) rtRandAdvStubRestoreState(PRTRANDINT pThis, char const *pszState); 170 DECLHIDDEN(DECLCALLBACK(int)) rtRandAdvDefaultDestroy(PRTRANDINT pThis); 187 171 188 172 RT_C_DECLS_END -
trunk/src/VBox/Runtime/include/internal/sched.h
r28800 r36555 41 41 * @param enmType The thread type to be assumed for the current thread. 42 42 */ 43 intrtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType);43 DECLHIDDEN(int) rtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType); 44 44 45 45 RT_C_DECLS_END -
trunk/src/VBox/Runtime/include/internal/string.h
r28903 r36555 48 48 #endif 49 49 50 size_trtstrFormatRt(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs,51 int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize);52 size_trtstrFormatType(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs,53 int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize);50 DECLHIDDEN(size_t) rtstrFormatRt(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs, 51 int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize); 52 DECLHIDDEN(size_t) rtstrFormatType(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs, 53 int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize); 54 54 55 55 #ifdef RT_WITH_ICONV_CACHE 56 voidrtStrIconvCacheInit(struct RTTHREADINT *pThread);57 voidrtStrIconvCacheDestroy(struct RTTHREADINT *pThread);56 DECLHIDDEN(void) rtStrIconvCacheInit(struct RTTHREADINT *pThread); 57 DECLHIDDEN(void) rtStrIconvCacheDestroy(struct RTTHREADINT *pThread); 58 58 #endif 59 59 … … 75 75 } RTSTRICONV; 76 76 77 intrtStrConvert(const char *pchInput, size_t cchInput, const char *pszInputCS,78 char **ppszOutput, size_t cbOutput, const char *pszOutputCS,79 unsigned cFactor, RTSTRICONV enmCacheIdx);80 const char *rtStrGetLocaleCodeset(void);81 intrtUtf8Length(const char *psz, size_t cch, size_t *pcuc, size_t *pcchActual);77 DECLHIDDEN(int) rtStrConvert(const char *pchInput, size_t cchInput, const char *pszInputCS, 78 char **ppszOutput, size_t cbOutput, const char *pszOutputCS, 79 unsigned cFactor, RTSTRICONV enmCacheIdx); 80 DECLHIDDEN(const char *) rtStrGetLocaleCodeset(void); 81 DECLHIDDEN(int) rtUtf8Length(const char *psz, size_t cch, size_t *pcuc, size_t *pcchActual); 82 82 83 83 RT_C_DECLS_END -
trunk/src/VBox/Runtime/include/internal/thread.h
r34256 r36555 138 138 * @returns iprt status code. 139 139 */ 140 intrtThreadNativeInit(void);140 DECLHIDDEN(int) rtThreadNativeInit(void); 141 141 142 142 /** … … 148 148 * @param pNativeThread Where to store the native thread identifier. 149 149 */ 150 intrtThreadNativeCreate(PRTTHREADINT pThreadInt, PRTNATIVETHREAD pNativeThread);150 DECLHIDDEN(int) rtThreadNativeCreate(PRTTHREADINT pThreadInt, PRTNATIVETHREAD pNativeThread); 151 151 152 152 /** … … 156 156 * @param pThread Pointer to the thread structure. 157 157 */ 158 intrtThreadNativeAdopt(PRTTHREADINT pThread);158 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread); 159 159 160 160 /** … … 164 164 * @param pThread The thread structure. 165 165 */ 166 voidrtThreadNativeDestroy(PRTTHREADINT pThread);166 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread); 167 167 168 168 /** … … 178 178 * @remark Located in sched. 179 179 */ 180 intrtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType);180 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType); 181 181 182 182 #ifdef IN_RING3 … … 188 188 * threads properly. 189 189 */ 190 voidrtThreadNativeDetach(void);190 DECLHIDDEN(void) rtThreadNativeDetach(void); 191 191 # endif 192 192 #endif /* !IN_RING0 */ … … 194 194 195 195 /* thread.cpp */ 196 int rtThreadMain(PRTTHREADINT pThread, RTNATIVETHREAD NativeThread, const char *pszThreadName); 197 void rtThreadBlocking(PRTTHREADINT pThread, RTTHREADSTATE enmState, uint64_t u64Block, 198 const char *pszFile, unsigned uLine, RTUINTPTR uId); 199 void rtThreadUnblocked(PRTTHREADINT pThread, RTTHREADSTATE enmCurState); 200 uint32_t rtThreadRelease(PRTTHREADINT pThread); 201 void rtThreadTerminate(PRTTHREADINT pThread, int rc); 202 PRTTHREADINT rtThreadGetByNative(RTNATIVETHREAD NativeThread); 203 PRTTHREADINT rtThreadGet(RTTHREAD Thread); 204 int rtThreadInit(void); 205 void rtThreadTerm(void); 206 void rtThreadInsert(PRTTHREADINT pThread, RTNATIVETHREAD NativeThread); 207 #ifdef IN_RING3 208 int rtThreadDoSetProcPriority(RTPROCPRIORITY enmPriority); 196 DECLHIDDEN(int) rtThreadMain(PRTTHREADINT pThread, RTNATIVETHREAD NativeThread, const char *pszThreadName); 197 DECLHIDDEN(uint32_t) rtThreadRelease(PRTTHREADINT pThread); 198 DECLHIDDEN(void) rtThreadTerminate(PRTTHREADINT pThread, int rc); 199 DECLHIDDEN(PRTTHREADINT) rtThreadGetByNative(RTNATIVETHREAD NativeThread); 200 DECLHIDDEN(PRTTHREADINT) rtThreadGet(RTTHREAD Thread); 201 DECLHIDDEN(int) rtThreadInit(void); 202 DECLHIDDEN(void) rtThreadTerm(void); 203 DECLHIDDEN(void) rtThreadInsert(PRTTHREADINT pThread, RTNATIVETHREAD NativeThread); 204 #ifdef IN_RING3 205 DECLHIDDEN(int) rtThreadDoSetProcPriority(RTPROCPRIORITY enmPriority); 209 206 #endif /* !IN_RING0 */ 210 207 #ifdef IPRT_WITH_GENERIC_TLS 211 voidrtThreadClearTlsEntry(RTTLS iTls);212 voidrtThreadTlsDestruction(PRTTHREADINT pThread); /* in tls-generic.cpp */208 DECLHIDDEN(void) rtThreadClearTlsEntry(RTTLS iTls); 209 DECLHIDDEN(void) rtThreadTlsDestruction(PRTTHREADINT pThread); /* in tls-generic.cpp */ 213 210 #endif 214 211
Note:
See TracChangeset
for help on using the changeset viewer.