Lines Matching defs:mode
63 node->mode = entry->mode;
80 int VfsProcfsCreate(struct Vnode* parent, const char *name, int mode, struct Vnode **vnode)
96 curEntry = ProcCreate(name, mode, parentEntry, NULL);
105 vp->mode = S_IFDIR | PROCFS_DEFAULT_MODE;
107 vp->mode = S_IFREG | PROCFS_DEFAULT_MODE;
213 vp->mode = S_IFDIR | PROCFS_DEFAULT_MODE;
215 vp->mode = S_IFREG | PROCFS_DEFAULT_MODE;
237 buf->st_mode = entry->mode;
243 int VfsProcfsMkdir(struct Vnode *parent, const char *dirName, mode_t mode, struct Vnode **vnode)
251 int ret = parentEntry->procDirOps->mkdir(parentEntry, dirName, mode, &pde);
261 (*vnode)->mode = S_IFDIR | PROCFS_DEFAULT_MODE;
263 (*vnode)->mode = S_IFREG | PROCFS_DEFAULT_MODE;
378 if (S_ISREG(pde->mode) && (pde->procFileOps != NULL) && (pde->procFileOps->open != NULL)) {
381 if (S_ISDIR(pde->mode)) {