Lines Matching refs:pde
246 struct ProcDirEntry *pde = NULL; in VfsProcfsMkdir() local
251 int ret = parentEntry->procDirOps->mkdir(parentEntry, dirName, mode, &pde); in VfsProcfsMkdir()
252 if ((ret < 0) || (pde == NULL)) { in VfsProcfsMkdir()
256 *vnode = EntryToVnode(pde); in VfsProcfsMkdir()
294 struct ProcDirEntry *pde = NULL; in VfsProcfsReaddir() local
304 pde = VnodeToEntry(node); in VfsProcfsReaddir()
305 if (pde == NULL) { in VfsProcfsReaddir()
318 result = ReadProcFile(pde, (void *)buffer, NAME_MAX); in VfsProcfsReaddir()
346 struct ProcDirEntry *pde = VnodeToEntry(node); in VfsProcfsOpendir() local
347 if (pde == NULL) { in VfsProcfsOpendir()
352 pde->pdirCurrent = pde->subdir; in VfsProcfsOpendir()
353 if (pde->pf == NULL) { in VfsProcfsOpendir()
357 pde->pf->fPos = 0; in VfsProcfsOpendir()
369 struct ProcDirEntry *pde = VnodeToEntry(node); in VfsProcfsOpen() local
370 if (pde == NULL) { in VfsProcfsOpen()
375 if (ProcOpen(pde->pf) != OK) { in VfsProcfsOpen()
378 if (S_ISREG(pde->mode) && (pde->procFileOps != NULL) && (pde->procFileOps->open != NULL)) { in VfsProcfsOpen()
379 (void)pde->procFileOps->open((struct Vnode *)pde, pde->pf); in VfsProcfsOpen()
381 if (S_ISDIR(pde->mode)) { in VfsProcfsOpen()
382 pde->pdirCurrent = pde->subdir; in VfsProcfsOpen()
383 pde->pf->fPos = 0; in VfsProcfsOpen()
385 filep->f_priv = (void *)pde; in VfsProcfsOpen()
399 struct ProcDirEntry *pde = VnodeToEntry(node); in VfsProcfsClose() local
400 if ((pde == NULL) || (pde->pf == NULL)) { in VfsProcfsClose()
405 pde->pf->fPos = 0; in VfsProcfsClose()
406 if ((pde->procFileOps != NULL) && (pde->procFileOps->release != NULL)) { in VfsProcfsClose()
407 result = pde->procFileOps->release((struct Vnode *)pde, pde->pf); in VfsProcfsClose()
409 LosBufRelease(pde->pf->sbuf); in VfsProcfsClose()
410 pde->pf->sbuf = NULL; in VfsProcfsClose()
435 struct ProcDirEntry *pde = VnodeToEntry(vnode); in VfsProcfsReadlink() local
436 if (pde == NULL) { in VfsProcfsReadlink()
440 if ((pde->procFileOps != NULL) && (pde->procFileOps->readLink != NULL)) { in VfsProcfsReadlink()
441 result = pde->procFileOps->readLink(pde, buffer, bufLen); in VfsProcfsReadlink()