Lines Matching refs:proc_dentry

22 static struct proc_dentry _proc_root = {
36 static int _proc_find(struct proc_dentry **parent, const char *name) in _proc_find()
38 struct proc_dentry *dentry = RT_NULL, *tmp; in _proc_find()
57 static int proc_find(struct proc_dentry **parent, const char **name, rt_bool_t force_lookup) in proc_find()
153 struct proc_dentry *entry = (struct proc_dentry *)file->vnode->data; in proc_open()
182 struct proc_dentry *entry = (struct proc_dentry *)file->vnode->data; in proc_close()
200 static struct proc_dentry *proc_create(struct proc_dentry **parent, const char *name, mode_t mode) in proc_create()
203 struct proc_dentry *dentry = RT_NULL; in proc_create()
212 dentry = rt_calloc(1, sizeof(struct proc_dentry)); in proc_create()
238 struct proc_dentry *proc_acquire(struct proc_dentry *dentry) in proc_acquire()
255 void proc_release(struct proc_dentry *dentry) in proc_release()
280 static struct proc_dentry *proc_register(struct proc_dentry *parent, struct proc_dentry *child) in proc_register()
301 struct proc_dentry *proc_mkdir_data(const char *name, mode_t mode, struct proc_dentry *parent, in proc_mkdir_data()
304 struct proc_dentry *dentry, *_parent = parent; in proc_mkdir_data()
331 struct proc_dentry *proc_mkdir_mode(const char *name, mode_t mode, struct proc_dentry *parent) in proc_mkdir_mode()
344 struct proc_dentry *proc_mkdir(const char *name, struct proc_dentry *parent) in proc_mkdir()
349 static struct proc_dentry *proc_create_reg(const char *name, mode_t mode, struct proc_dentry **pare… in proc_create_reg()
351 struct proc_dentry *dentry = RT_NULL; in proc_create_reg()
378 struct proc_dentry *proc_create_data(const char *name, mode_t mode, struct proc_dentry *parent, in proc_create_data()
381 struct proc_dentry *dentry, *_parent = parent; in proc_create_data()
407 struct proc_dentry *proc_create_single_data(const char *name, mode_t mode, struct proc_dentry *pare… in proc_create_single_data()
410 struct proc_dentry *dentry, *_parent = parent; in proc_create_single_data()
435 struct proc_dentry *proc_symlink(const char *name, struct proc_dentry *parent, const char *dest) in proc_symlink()
437 struct proc_dentry *dentry, *_parent = parent; in proc_symlink()
459 static void remove_proc_subtree(struct proc_dentry *dentry) in remove_proc_subtree()
461 struct proc_dentry *iter = RT_NULL, *iter_tmp, *tmp = RT_NULL; in remove_proc_subtree()
498 void proc_remove(struct proc_dentry *dentry) in proc_remove()
519 struct proc_dentry *dfs_proc_find(const char *name) in dfs_proc_find()
521 struct proc_dentry *dentry = RT_NULL; in dfs_proc_find()
536 void proc_remove_dentry(const char *name, struct proc_dentry *parent) in proc_remove_dentry()
538 struct proc_dentry *dentry = parent; in proc_remove_dentry()
554 static void dump_proc_subtree(struct proc_dentry *dentry, int tab) in dump_proc_subtree()
556 struct proc_dentry *iter = RT_NULL, *tmp; in dump_proc_subtree()
586 static void proc_dump(struct proc_dentry *dentry) in proc_dump()
609 struct proc_dentry *dentry = RT_NULL; in msh_proc_dump()
627 struct proc_dentry *dentry = RT_NULL; in msh_proc_remove()
638 struct proc_dentry *iter = RT_NULL, *iter_tmp, *tmp = RT_NULL; in msh_proc_remove()
676 struct proc_dentry *entry = proc_symlink(argv[1], 0, argv[2]); in msh_proc_symlink()
697 struct proc_dentry *entry = proc_create_data(argv[i], 0, 0, 0, 0); in msh_proc_echo()
719 struct proc_dentry *entry = proc_mkdir(argv[i], 0); in msh_proc_mkdir()