Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.3 KiB

  1. //============== DAE: OS/2 Database Access Engine =====================
  2. //============== stint.h: Storage System Internals =====================
  3. #define cbStack 4096 // stack size for each thread
  4. //---- PIB (pib.c) ----------------------------------------------------------
  5. VOID InsProc( PIB *ppib );
  6. VOID DelProc( PIB *ppib );
  7. //---- BUF (buf.c) ----------------------------------------------------------
  8. #define IpbfHashPgno(pn) (INT)( (pn + (pn>>18)) % ipbfMax )
  9. #define PbfFromPPbfNext( ppbf ) \
  10. ((BF *)((BYTE *)(ppbf) - (UINT)(ULONG_PTR)&((BF *)0)->pbfNext))
  11. ERR ErrBFInit( VOID );
  12. VOID BFTermProc( VOID );
  13. VOID BFReleaseBF( VOID );
  14. ERR ErrBFWrite( BF *pbf, BOOL fSync );
  15. ERR ErrBFIFindPage( PIB *ppib, PN pn, BF **ppbf );
  16. VOID BFCheckRefCnt( VOID );
  17. VOID DumpBufferGroup( BOOL fDumpFree, BOOL fDumpPage, BOOL fDumpLines );
  18. VOID DumpBF( BF *pbf );
  19. VOID DumpBufHashTable( VOID );
  20. VOID DumpDatabaseBuffers( DBID dbid );
  21. BF * PbfBFISrchHashTable( PN pn );
  22. VOID BFIInsertHashTable( BF *pbf );
  23. VOID BFIDeleteHashTable( BF *pbf );
  24. //------ IO (io.c) ----------------------------------------------------------
  25. ERR ErrIOInit( void );
  26. ERR ErrIOTerm( void );
  27. VOID IOAsync( IOQE *pioqe );
  28. VOID IOWait( IOQE *pioqe );
  29. VOID IOExecute( IOQE *pioqe );
  30. extern PIB * __near ppibAnchor;
  31. extern unsigned int __near rgPageWeight[];