Lines Matching defs:PgHdr1

50224 **  |  database page content   |  PgHdr1  |  MemPage  |  PgHdr  |
50228 ** flow harmlessly into the PgHdr1, MemPage, and PgHdr extensions). MemPage
50232 ** of which pages are "dirty". PgHdr1 is an extension added by this
50233 ** module (pcache1.c). The PgHdr1 header is a subclass of sqlite3_pcache_page.
50234 ** PgHdr1 contains information needed to look up a page by its page number.
50238 ** The size of the extension (MemPage+PgHdr+PgHdr1) can be determined at
50251 ** This module tracks pointers to PgHdr1 objects. Only pcache.c communicates
50252 ** with this module. Information is passed back and forth as PgHdr1 pointers.
50288 typedef struct PgHdr1 PgHdr1;
50295 ** PgHdr1.pCache->szPage bytes is allocated directly before this structure
50308 struct PgHdr1 {
50313 PgHdr1 *pNext; /* Next in hash table chain */
50315 PgHdr1 *pLruNext; /* Next in LRU list of unpinned pages */
50316 PgHdr1 *pLruPrev; /* Previous in LRU list of unpinned pages */
50355 PgHdr1 lru; /* The beginning and end of the LRU list */
50391 PgHdr1 **apHash; /* Hash table for fast lookup by key */
50392 PgHdr1 *pFree; /* List of unused pcache-local pages */
50512 PgHdr1 *pX = (PgHdr1*)&zBulk[pCache->szPage];
50540 p = (PgHdr1 *)pcache1.pFree;
50623 static PgHdr1 *pcache1AllocPage(PCache1 *pCache, int benignMalloc){
50624 PgHdr1 *p = 0;
50645 p = sqlite3Malloc(sizeof(PgHdr1) + pCache->szExtra);
50660 p = (PgHdr1 *)&((u8 *)pPg)[pCache->szPage];
50675 static void pcache1FreePage(PgHdr1 *p){
50744 PgHdr1 **apNew;
50757 apNew = (PgHdr1 **)sqlite3MallocZero(sizeof(PgHdr1 *)*nNew);
50762 PgHdr1 *pPage;
50763 PgHdr1 *pNext = p->apHash[i];
50784 static PgHdr1 *pcache1PinPage(PgHdr1 *pPage){
50809 static void pcache1RemoveFromHash(PgHdr1 *pPage, int freeFlag){
50812 PgHdr1 **pp;
50829 PgHdr1 *p;
50876 PgHdr1 **pp;
50877 PgHdr1 *pPage;
50995 pCache->szAlloc = szPage + szExtra + ROUND8(sizeof(PgHdr1));
51074 static SQLITE_NOINLINE PgHdr1 *pcache1FetchStage2(
51081 PgHdr1 *pPage = 0;
51202 static PgHdr1 *pcache1FetchNoMutex(
51208 PgHdr1 *pPage = 0;
51232 static PgHdr1 *pcache1FetchWithMutex(
51238 PgHdr1 *pPage;
51256 assert( offsetof(PgHdr1,page)==0 );
51284 PgHdr1 *pPage = (PgHdr1 *)pPg;
51300 PgHdr1 **ppFirst = &pGroup->lru.pLruNext;
51320 PgHdr1 *pPage = (PgHdr1 *)pPg;
51321 PgHdr1 **pp;
51413 SQLITE_PRIVATE int sqlite3HeaderSizePcache1(void){ return ROUND8(sizeof(PgHdr1)); }
51438 PgHdr1 *p;
51469 PgHdr1 *p;