Lines Matching refs:Base
3 * IPRT - Virtual File System, Base.
190 RTVFSOBJINTERNAL Base;
208 RTVFSOBJINTERNAL Base;
226 RTVFSOBJINTERNAL Base;
244 RTVFSOBJINTERNAL Base;
264 RTVFSOBJINTERNAL Base;
686 hLock = hVfs->Base.hLock;
706 rtVfsObjRetainVoid(&hVfs->Base);
796 pvToFree = RT_FROM_MEMBER(pThis, RTVFSINTERNAL, Base);
797 ASMAtomicWriteU32(&RT_FROM_MEMBER(pThis, RTVFSINTERNAL, Base)->uMagic, RTVFS_MAGIC_DEAD);
801 pvToFree = RT_FROM_MEMBER(pThis, RTVFSFSSTREAMINTERNAL, Base);
802 ASMAtomicWriteU32(&RT_FROM_MEMBER(pThis, RTVFSFSSTREAMINTERNAL, Base)->uMagic, RTVFSFSSTREAM_MAGIC_DEAD);
806 pvToFree = RT_FROM_MEMBER(pThis, RTVFSIOSTREAMINTERNAL, Base);
807 ASMAtomicWriteU32(&RT_FROM_MEMBER(pThis, RTVFSIOSTREAMINTERNAL, Base)->uMagic, RTVFSIOSTREAM_MAGIC_DEAD);
811 pvToFree = RT_FROM_MEMBER(pThis, RTVFSDIRINTERNAL, Base);
812 ASMAtomicWriteU32(&RT_FROM_MEMBER(pThis, RTVFSDIRINTERNAL, Base)->uMagic, RTVFSDIR_MAGIC_DEAD);
816 pvToFree = RT_FROM_MEMBER(pThis, RTVFSFILEINTERNAL, Stream.Base);
817 ASMAtomicWriteU32(&RT_FROM_MEMBER(pThis, RTVFSFILEINTERNAL, Stream.Base)->uMagic, RTVFSFILE_MAGIC_DEAD);
818 ASMAtomicWriteU32(&RT_FROM_MEMBER(pThis, RTVFSIOSTREAMINTERNAL, Base)->uMagic, RTVFSIOSTREAM_MAGIC_DEAD);
822 pvToFree = RT_FROM_MEMBER(pThis, RTVFSSYMLINKINTERNAL, Base);
823 ASMAtomicWriteU32(&RT_FROM_MEMBER(pThis, RTVFSSYMLINKINTERNAL, Base)->uMagic, RTVFSSYMLINK_MAGIC_DEAD);
883 return RT_FROM_MEMBER(pThis, RTVFSINTERNAL, Base);
901 return RT_FROM_MEMBER(pThis, RTVFSFSSTREAMINTERNAL, Base);
919 return RT_FROM_MEMBER(pThis, RTVFSDIRINTERNAL, Base);
938 return RT_FROM_MEMBER(pThis, RTVFSIOSTREAMINTERNAL, Base);
956 return RT_FROM_MEMBER(pThis, RTVFSFILEINTERNAL, Stream.Base);
974 return RT_FROM_MEMBER(pThis, RTVFSSYMLINKINTERNAL, Base);
985 RTVFSOBJINTERNAL *pThis = &hVfs->Base;
1000 RTVFSOBJINTERNAL *pThis = &hVfsFss->Base;
1015 RTVFSOBJINTERNAL *pThis = &hVfsDir->Base;
1030 RTVFSOBJINTERNAL *pThis = &hVfsIos->Base;
1045 RTVFSOBJINTERNAL *pThis = &hVfsFile->Stream.Base;
1060 RTVFSOBJINTERNAL *pThis = &hVfsSym->Base;
1351 Assert(pThis->Base.cRefs > 0);
1362 RTVfsLockAcquireRead(pThis->Base.hLock);
1363 int rc = pThis->pOps->pfnOpenRoot(pThis->Base.pvThis, &pCurDir);
1364 RTVfsLockReleaseRead(pThis->Base.hLock);
1397 RTVfsLockAcquireRead(pCurDir->Base.hLock);
1398 rc = pCurDir->pOps->pfnTraversalOpen(pCurDir->Base.pvThis, pszEntry, NULL, &hSymlink, NULL);
1399 RTVfsLockReleaseRead(pCurDir->Base.hLock);
1414 RTVfsLockAcquireRead(pCurDir->Base.hLock);
1415 rc = pCurDir->pOps->pfnTraversalOpen(pCurDir->Base.pvThis, pszEntry, &hDir, &hSymlink, &hVfsMnt);
1416 RTVfsLockReleaseRead(pCurDir->Base.hLock);
1465 RTVfsLockAcquireRead(pThis->Base.hLock);
1466 rc = pThis->pOps->pfnOpenRoot(pThis->Base.pvThis, &pCurDir);
1467 RTVfsLockReleaseRead(pThis->Base.hLock);
1482 RTVfsLockAcquireRead(hVfsMnt->Base.hLock);
1483 rc = pThis->pOps->pfnOpenRoot(hVfsMnt->Base.pvThis, &pCurDir);
1484 RTVfsLockReleaseRead(hVfsMnt->Base.hLock);
1610 int rc = rtVfsObjInitNewObject(&pThis->Base, NULL, hVfs, hLock,
1622 *ppvInstance = pThis->Base.pvThis;
1632 return rtVfsObjRetain(&pThis->Base);
1643 return rtVfsObjRelease(&pThis->Base);
1654 RTVfsLockAcquireWrite(pThis->Base.hLock);
1655 int rc = pThis->pOps->pfnIsRangeInUse(pThis->Base.pvThis, off, cb, pfUsed);
1656 RTVfsLockReleaseWrite(pThis->Base.hLock);
1697 int rc = rtVfsObjInitNewObject(&pThis->Base, &pFsStreamOps->Obj, hVfs, hLock,
1711 *ppvInstance = pThis->Base.pvThis;
1721 return rtVfsObjRetain(&pThis->Base);
1732 return rtVfsObjRelease(&pThis->Base);
1741 return RTVfsObjQueryInfo(&pThis->Base, pObjInfo, enmAddAttr);
1760 return pThis->pOps->pfnNext(pThis->Base.pvThis, ppszName, penmType, phVfsObj);
1779 return rtVfsObjRetain(&pThis->Base);
1790 return rtVfsObjRelease(&pThis->Base);
1828 int rc = rtVfsObjInitNewObject(&pThis->Base, &pSymlinkOps->Obj, hVfs, hLock,
1840 *ppvInstance = pThis->Base.pvThis;
1850 return rtVfsObjRetain(&pThis->Base);
1861 return rtVfsObjRelease(&pThis->Base);
1870 return RTVfsObjQueryInfo(&pThis->Base, pObjInfo, enmAddAttr);
1884 RTVfsLockAcquireWrite(pThis->Base.hLock);
1885 int rc = pThis->pOps->ObjSet.pfnSetMode(pThis->Base.pvThis, fMode, fMask);
1886 RTVfsLockReleaseWrite(pThis->Base.hLock);
1903 RTVfsLockAcquireWrite(pThis->Base.hLock);
1904 int rc = pThis->pOps->ObjSet.pfnSetTimes(pThis->Base.pvThis, pAccessTime, pModificationTime, pChangeTime, pBirthTime);
1905 RTVfsLockReleaseWrite(pThis->Base.hLock);
1916 RTVfsLockAcquireWrite(pThis->Base.hLock);
1917 int rc = pThis->pOps->ObjSet.pfnSetOwner(pThis->Base.pvThis, uid, gid);
1918 RTVfsLockReleaseWrite(pThis->Base.hLock);
1929 RTVfsLockAcquireWrite(pThis->Base.hLock);
1930 int rc = pThis->pOps->pfnRead(pThis->Base.pvThis, pszTarget, cbTarget);
1931 RTVfsLockReleaseWrite(pThis->Base.hLock);
1972 int rc = rtVfsObjInitNewObject(&pThis->Base, &pIoStreamOps->Obj, hVfs, hLock,
1985 *ppvInstance = pThis->Base.pvThis;
1997 return pThis->Base.pvThis;
2006 return rtVfsObjRetain(&pThis->Base);
2017 return rtVfsObjRelease(&pThis->Base);
2029 rtVfsObjRetainVoid(&pThis->Base);
2043 return RTVfsObjQueryInfo(&pThis->Base, pObjInfo, enmAddAttr);
2062 RTVfsLockAcquireWrite(pThis->Base.hLock);
2063 int rc = pThis->pOps->pfnRead(pThis->Base.pvThis, -1 /*off*/, &SgBuf, fBlocking, pcbRead);
2064 RTVfsLockReleaseWrite(pThis->Base.hLock);
2085 RTVfsLockAcquireWrite(pThis->Base.hLock);
2086 int rc = pThis->pOps->pfnRead(pThis->Base.pvThis, off, &SgBuf, fBlocking, pcbRead);
2087 RTVfsLockReleaseWrite(pThis->Base.hLock);
2107 RTVfsLockAcquireWrite(pThis->Base.hLock);
2108 int rc = pThis->pOps->pfnWrite(pThis->Base.pvThis, -1 /*off*/, &SgBuf, fBlocking, pcbWritten);
2109 RTVfsLockReleaseWrite(pThis->Base.hLock);
2130 RTVfsLockAcquireWrite(pThis->Base.hLock);
2131 int rc = pThis->pOps->pfnWrite(pThis->Base.pvThis, off, &SgBuf, fBlocking, pcbWritten);
2132 RTVfsLockReleaseWrite(pThis->Base.hLock);
2149 RTVfsLockAcquireWrite(pThis->Base.hLock);
2152 rc = pThis->pOps->pfnRead(pThis->Base.pvThis, -1 /*off*/, pSgBuf, fBlocking, pcbRead);
2164 rc = pThis->pOps->pfnRead(pThis->Base.pvThis, -1 /*off*/, &SgBuf, fBlocking, pcbRead ? &cbReadSeg : NULL);
2175 RTVfsLockReleaseWrite(pThis->Base.hLock);
2192 RTVfsLockAcquireWrite(pThis->Base.hLock);
2195 rc = pThis->pOps->pfnWrite(pThis->Base.pvThis, -1 /*off*/, pSgBuf, fBlocking, pcbWritten);
2207 rc = pThis->pOps->pfnWrite(pThis->Base.pvThis, -1 /*off*/, &SgBuf, fBlocking, pcbWritten ? &cbWrittenSeg : NULL);
2221 RTVfsLockReleaseWrite(pThis->Base.hLock);
2232 RTVfsLockAcquireWrite(pThis->Base.hLock);
2233 int rc = pThis->pOps->pfnFlush(pThis->Base.pvThis);
2234 RTVfsLockReleaseWrite(pThis->Base.hLock);
2246 RTVfsLockAcquireWrite(pThis->Base.hLock);
2247 int rc = pThis->pOps->pfnPollOne(pThis->Base.pvThis, fEvents, cMillies, fIntr, pfRetEvents);
2248 RTVfsLockReleaseWrite(pThis->Base.hLock);
2260 RTVfsLockAcquireRead(pThis->Base.hLock);
2261 int rc = pThis->pOps->pfnTell(pThis->Base.pvThis, &off);
2262 RTVfsLockReleaseRead(pThis->Base.hLock);
2279 RTVfsLockAcquireWrite(pThis->Base.hLock);
2280 rc = pThis->pOps->pfnSkip(pThis->Base.pvThis, cb);
2281 RTVfsLockReleaseWrite(pThis->Base.hLock);
2288 RTVfsLockAcquireWrite(pThis->Base.hLock);
2289 rc = pThisFile->pOps->pfnSeek(pThis->Base.pvThis, cb, RTFILE_SEEK_CURRENT, &offIgnored);
2290 RTVfsLockReleaseWrite(pThis->Base.hLock);
2301 RTVfsLockAcquireWrite(pThis->Base.hLock);
2303 RTVfsLockReleaseWrite(pThis->Base.hLock);
2327 RTVfsLockAcquireWrite(pThis->Base.hLock);
2328 rc = pThis->pOps->pfnZeroFill(pThis->Base.pvThis, cb);
2329 RTVfsLockReleaseWrite(pThis->Base.hLock);
2340 RTVfsLockAcquireWrite(pThis->Base.hLock);
2342 RTVfsLockReleaseWrite(pThis->Base.hLock);
2407 int rc = rtVfsObjInitNewObject(&pThis->Stream.Base, &pFileOps->Stream.Obj, hVfs, hLock,
2423 *ppvInstance = pThis->Stream.Base.pvThis;
2464 RTVfsLockAcquireWrite(pVfsParentDir->Base.hLock);
2465 rc = pVfsParentDir->pOps->pfnOpenFile(pVfsParentDir->Base.pvThis, pszEntryName, fOpen, phVfsFile);
2466 RTVfsLockReleaseWrite(pVfsParentDir->Base.hLock);
2490 return rtVfsObjRetain(&pThis->Stream.Base);
2501 return rtVfsObjRelease(&pThis->Stream.Base);
2511 rtVfsObjRetainVoid(&pThis->Stream.Base);
2521 return RTVfsObjQueryInfo(&pThis->Stream.Base, pObjInfo, enmAddAttr);
2623 RTVfsLockAcquireWrite(pThis->Stream.Base.hLock);
2624 int rc = pThis->pOps->pfnSeek(pThis->Stream.Base.pvThis, offSeek, uMethod, &offActual);
2625 RTVfsLockReleaseWrite(pThis->Stream.Base.hLock);
2643 RTVfsLockAcquireWrite(pThis->Stream.Base.hLock);
2644 int rc = pThis->pOps->pfnQuerySize(pThis->Stream.Base.pvThis, pcbSize);
2645 RTVfsLockReleaseWrite(pThis->Stream.Base.hLock);