Lines Matching refs:mode
23 .mode = S_IFDIR | (S_IRUSR | S_IRGRP | S_IROTH) | (S_IXUSR | S_IXGRP | S_IXOTH),
89 if (ret < 0 || !S_ISDIR((*parent)->mode)) in proc_find()
200 static struct proc_dentry *proc_create(struct proc_dentry **parent, const char *name, mode_t mode) in proc_create() argument
215 dentry->mode = mode; in proc_create()
266 if (S_ISLNK(dentry->mode) && dentry->data) in proc_release()
301 struct proc_dentry *proc_mkdir_data(const char *name, mode_t mode, struct proc_dentry *parent, in proc_mkdir_data() argument
306 if (mode == 0) in proc_mkdir_data()
307 mode = (S_IRUSR | S_IRGRP | S_IROTH) | (S_IXUSR | S_IXGRP | S_IXOTH); in proc_mkdir_data()
309 dentry = proc_create(&_parent, name, S_IFDIR | mode); 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() argument
333 return proc_mkdir_data(name, mode, parent, NULL, NULL); in proc_mkdir_mode()
349 static struct proc_dentry *proc_create_reg(const char *name, mode_t mode, struct proc_dentry **pare… in proc_create_reg() argument
353 if ((mode & S_IFMT) == 0) in proc_create_reg()
354 mode |= S_IFREG; in proc_create_reg()
355 if ((mode & (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)) == 0) in proc_create_reg()
356 mode |= S_IRUSR | S_IRGRP | S_IROTH; in proc_create_reg()
358 if (!S_ISREG(mode)) in proc_create_reg()
364 return proc_create(parent, name, mode); 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() argument
383 dentry = proc_create_reg(name, mode, &_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() argument
412 dentry = proc_create_reg(name, mode, &_parent); in proc_create_single_data()
478 if (S_ISDIR(dentry->mode)) in remove_proc_subtree()
502 if (S_ISDIR(dentry->mode)) in proc_remove()
570 if (S_ISDIR(iter->mode)) in dump_proc_subtree()
575 else if (S_ISLNK(iter->mode)) in dump_proc_subtree()
590 if (S_ISDIR(dentry->mode)) in proc_dump()
595 else if (S_ISLNK(dentry->mode)) in proc_dump()