Lines Matching refs:dentry
54 struct proc_dentry *dentry = (struct proc_dentry *)seq->file->vnode->data; in stat_single_show() local
69 lwp = lwp_from_pid_locked(dentry->pid); in stat_single_show()
74 dfs_seq_printf(seq,"%d ",dentry->pid); in stat_single_show()
178 struct proc_dentry *dentry = (struct proc_dentry *)seq->file->vnode->data; in cmdline_single_show() local
183 lwp = lwp_from_pid_locked(dentry->pid); in cmdline_single_show()
207 struct proc_dentry *dentry = RT_NULL; in proc_pid_fd_lookup() local
231 dentry = rt_calloc(1, sizeof(struct proc_dentry)); in proc_pid_fd_lookup()
232 if (dentry) in proc_pid_fd_lookup()
234 …dentry->mode = (S_IFLNK | (S_IRUSR | S_IRGRP | S_IROTH) | (S_IWUSR | S_IWGRP | S_IWOTH) | (S_IXUSR… in proc_pid_fd_lookup()
235 dentry->ref_count = 1; in proc_pid_fd_lookup()
236 dentry->name = rt_strdup(name); in proc_pid_fd_lookup()
237 dentry->data = (void *)dfs_dentry_full_path(file->dentry); in proc_pid_fd_lookup()
239 if (dentry->data == RT_NULL) in proc_pid_fd_lookup()
243 dentry->data = (void *)rt_strdup("socket"); in proc_pid_fd_lookup()
245 dentry->data = (void *)rt_strdup("user"); in proc_pid_fd_lookup()
247 dentry->data = (void *)rt_strdup("device"); in proc_pid_fd_lookup()
249 dentry->data = (void *)rt_strdup("unknown"); in proc_pid_fd_lookup()
252 dentry->pid = parent->pid; in proc_pid_fd_lookup()
260 return dentry; in proc_pid_fd_lookup()
336 int proc_pid_exe_readlink(struct proc_dentry *dentry, char *buf, int len) in proc_pid_exe_readlink() argument
350 int proc_pid_cwd_readlink(struct proc_dentry *dentry, char *buf, int len) in proc_pid_cwd_readlink() argument
376 struct proc_dentry *dentry; in proc_pid() local
381 dentry = proc_mkdir(pid_str, 0); in proc_pid()
382 if (dentry) in proc_pid()
386 dentry->pid = pid; in proc_pid()
391 ent = proc_mkdir_data(pid_dentry_base[j].name, pid_dentry_base[j].mode, dentry, in proc_pid()
401 ent = proc_symlink(pid_dentry_base[j].name, dentry, pid_dentry_base[j].data); in proc_pid()
405 ent = proc_create_data(pid_dentry_base[j].name, pid_dentry_base[j].mode, dentry, in proc_pid()
429 proc_release(dentry); in proc_pid()