Lines Matching defs:mode
70 static int tracefs_syscall_mkdir(struct inode *inode, struct dentry *dentry, umode_t mode)
141 umode_t mode;
156 {Opt_mode, "mode=%o"},
245 opts->mode = TRACEFS_DEFAULT_MODE;
272 opts->mode = option & S_IALLUGO;
293 * On remount, only reset mode/uid/gid if they were provided as mount
299 inode->i_mode |= opts->mode;
340 if (opts->mode != TRACEFS_DEFAULT_MODE)
341 seq_printf(m, ",mode=%o", opts->mode);
455 * @mode: the permission that the file should have.
478 struct dentry *tracefs_create_file(const char *name, umode_t mode,
488 if (!(mode & S_IFMT))
489 mode |= S_IFREG;
490 BUG_ON(!S_ISREG(mode));
500 inode->i_mode = mode;