Home
last modified time | relevance | path

Searched refs:ProcDirEntry (Results 1 – 18 of 18) sorted by relevance

/kernel/liteos_a/fs/proc/include/
Dproc_fs.h85 struct ProcDirEntry;
93 ssize_t (*readLink)(struct ProcDirEntry *pde, char *buf, size_t bufLen);
98 int (*rmdir)(struct ProcDirEntry *parent, struct ProcDirEntry *pde, const char *name);
99 …int (*mkdir)(struct ProcDirEntry *parent, const char *dirName, mode_t mode, struct ProcDirEntry **…
105 struct ProcDirEntry { struct
112 struct ProcDirEntry *next, *parent, *subdir; argument
122 struct ProcDirEntry *pdirCurrent; argument
137 struct ProcDirEntry *pPDE; argument
145 struct ProcDirEntry *pPDE;
187 extern struct ProcDirEntry *CreateProcEntry(const char *name, mode_t mode, struct ProcDirEntry *par…
[all …]
Dproc_file.h59 extern struct ProcDirEntry *OpenProcFile(const char *fileName, int flags, ...);
84 extern int ReadProcFile(struct ProcDirEntry *pde, void *buf, size_t len);
109 extern int WriteProcFile(struct ProcDirEntry *pde, const void *buf, size_t len);
134 extern loff_t LseekProcFile(struct ProcDirEntry *pde, loff_t offset, int whence);
159 int LseekDirProcFile(struct ProcDirEntry *pde, off_t *pos, int whence);
182 extern int CloseProcFile(struct ProcDirEntry *pde);
184 extern struct ProcDirEntry *GetProcRootEntry(void);
Dinternal.h51 void ProcFreeProcessDir(struct ProcDirEntry *processDir);
62 void ProcEntryClearVnode(struct ProcDirEntry *entry);
64 void ProcDetachNode(struct ProcDirEntry *pn);
66 void RemoveProcEntryTravalsal(struct ProcDirEntry *pn);
74 int ProcMatch(unsigned int len, const char *name, struct ProcDirEntry *pde);
76 struct ProcDirEntry *ProcFindEntry(const char *path);
78 void ProcFreeEntry(struct ProcDirEntry *pde);
/kernel/liteos_a/fs/proc/src/
Dproc_file.c50 static struct ProcDirEntry g_procRootDirEntry = {
63 int ProcMatch(unsigned int len, const char *name, struct ProcDirEntry *pn) in ProcMatch()
71 static struct ProcDirEntry *ProcFindNode(struct ProcDirEntry *parent, const char *name) in ProcFindNode()
73 struct ProcDirEntry *pn = NULL; in ProcFindNode()
96 struct ProcDirEntry *ProcFindEntry(const char *path) in ProcFindEntry()
98 struct ProcDirEntry *pn = NULL; in ProcFindEntry()
167 static int CheckProcName(const char *name, struct ProcDirEntry **parent, const char **lastName) in CheckProcName()
169 struct ProcDirEntry *pn = *parent; in CheckProcName()
203 static struct ProcDirEntry *ProcAllocNode(struct ProcDirEntry **parent, const char *name, mode_t mo… in ProcAllocNode()
205 struct ProcDirEntry *pn = NULL; in ProcAllocNode()
[all …]
Dproc_shellcmd.c59 struct ProcDirEntry *handle = NULL; in OsShellCmdWriteProc()
/kernel/liteos_a/fs/proc/os_adapt/
Dproc_vfs.c48 struct ProcDirEntry *VnodeToEntry(struct Vnode *node) in VnodeToEntry()
50 return (struct ProcDirEntry *)(node->data); in VnodeToEntry()
53 static struct Vnode *EntryToVnode(struct ProcDirEntry *entry) in EntryToVnode()
67 static int EntryMatch(const char *name, int len, const struct ProcDirEntry *pn) in EntryMatch()
84 struct ProcDirEntry *curEntry = NULL; in VfsProcfsCreate()
86 struct ProcDirEntry *parentEntry = VnodeToEntry(parent); in VfsProcfsCreate()
123 struct ProcDirEntry *entry = NULL; in VfsProcfsRead()
144 struct ProcDirEntry *entry = NULL; in VfsProcfsWrite()
167 struct ProcDirEntry *entry = VnodeToEntry(parent); in VfsProcfsLookup()
205 struct ProcDirEntry *root = GetProcRootEntry(); in VfsProcfsMount()
[all …]
Dplimits_proc.c71 static int ProcfsPlimitsMkdir(struct ProcDirEntry *parent, const char *dirName, mode_t mode, struct…
72 static int ProcfsPlimitsRmdir(struct ProcDirEntry *parent, struct ProcDirEntry *pde, const char *na…
284 static inline struct ProcDirEntry *GetCurrDirectory(struct ProcDirEntry *dirEntry) in GetCurrDirectory()
289 static inline ProcLimiterSet *GetProcLimiterSetFromDirEntry(struct ProcDirEntry *dirEntry) in GetProcLimiterSetFromDirEntry()
291 struct ProcDirEntry *currDirectory = GetCurrDirectory(dirEntry); in GetProcLimiterSetFromDirEntry()
295 static struct ProcDirEntry *ProcCreateLimiterFiles(struct ProcDirEntry *parentEntry, in ProcCreateLimiterFiles()
303 …struct ProcDirEntry *plimitFile = ProcCreateData(entryOpt->name, entryOpt->mode & mode, parentEntr… in ProcCreateLimiterFiles()
311 static void ProcLimiterDirEntryInit(struct ProcDirEntry *dirEntry, unsigned mask, mode_t mode) in ProcLimiterDirEntryInit()
313 struct ProcDirEntry *currDir = GetCurrDirectory(dirEntry); in ProcLimiterDirEntryInit()
332 struct ProcDirEntry *entry = ProcCreateLimiterFiles(currDir, entryOpt, mode, head); in ProcLimiterDirEntryInit()
[all …]
Dpower_proc.c149 …struct ProcDirEntry *power = CreateProcEntry("power", S_IFDIR | S_IRWXU | S_IRWXG | S_IROTH, NULL); in ProcPmInit()
157 struct ProcDirEntry *mode = CreateProcEntry("power/power_mode", POWER_FILE_MODE, NULL); in ProcPmInit()
166 struct ProcDirEntry *lock = CreateProcEntry("power/power_lock", POWER_FILE_MODE, NULL); in ProcPmInit()
175 struct ProcDirEntry *unlock = CreateProcEntry("power/power_unlock", POWER_FILE_MODE, NULL); in ProcPmInit()
184 …struct ProcDirEntry *count = CreateProcEntry("power/power_count", S_IRUSR | S_IRGRP | S_IROTH, NUL… in ProcPmInit()
Dsys_user.c193 static int ProcCreateSysUser(struct ProcDirEntry *parent) in ProcCreateSysUser()
200 …struct ProcDirEntry *userFile = ProcCreateData(sysUser->name, sysUser->mode, parent, sysUser->file… in ProcCreateSysUser()
212 struct ProcDirEntry *parentPDE = CreateProcEntry("sys", PROC_SYS_USER_MODE, NULL); in ProcSysUserInit()
216 struct ProcDirEntry *pde = CreateProcEntry("user", PROC_SYS_USER_MODE, parentPDE); in ProcSysUserInit()
Dprocess_proc.c104 static ssize_t ProcessContainerReadLink(struct ProcDirEntry *entry, char *buffer, size_t bufLen) in ProcessContainerReadLink()
172 struct ProcDirEntry *entry = VnodeToEntry(vnode); in ProcfsContainerGet()
312 struct ProcDirEntry *entry = pf->pPDE; in ProcTimeContainerWrite()
387 struct ProcDirEntry *entry = pf->pPDE; in ProcUidGidMapWriteCheck()
616 void ProcFreeProcessDir(struct ProcDirEntry *processDir) in ProcFreeProcessDir()
624 static struct ProcDirEntry *ProcCreatePorcess(UINT32 pid, struct ProcProcess *porcess, uintptr_t pr… in ProcCreatePorcess()
655 …struct ProcDirEntry *container = ProcCreateData(pidName, porcess->mode, NULL, porcess->fileOps, &d… in ProcCreatePorcess()
667 struct ProcDirEntry *pidDir = NULL; in ProcCreateProcessDir()
670 struct ProcDirEntry *dir = ProcCreatePorcess(pid, procProcess, process); in ProcCreateProcessDir()
709 struct ProcDirEntry *pde = CreateProcEntry("process", 0, NULL); in ProcProcessInit()
Dfile_sys.c63 struct ProcDirEntry *pde = CreateProcEntry("filesystems", 0, NULL); in ProcFileSysInit()
Dmem_info.c62 struct ProcDirEntry *pde = CreateProcEntry("meminfo", 0, NULL); in ProcSysMemInfoInit()
Dmounts_proc.c92 struct ProcDirEntry *pde = CreateProcEntry("mounts", 0, NULL); in ProcMountsInit()
Duptime_proc.c79 struct ProcDirEntry *pde = CreateProcEntry("uptime", 0, NULL); in ProcUptimeInit()
Dfd_proc.c136 struct ProcDirEntry *pde = CreateProcEntry("fd", 0, NULL); in ProcFdInit()
Dvmm_proc.c108 struct ProcDirEntry *pde = CreateProcEntry("vmm", 0, NULL); in ProcVmmInit()
Dfs_cache_proc.c210 struct ProcDirEntry *pde = CreateProcEntry("fs_cache", 0, NULL); in ProcFsCacheInit()
/kernel/liteos_a/kernel/base/include/
Dlos_process_pri.h143 struct ProcDirEntry *procDir;