Lines Matching defs:mode
42 * so that we can use the file mode as part of a heuristic to determine whether
83 umode_t mode;
96 {Opt_mode, "mode=%o"},
113 opts->mode = DEBUGFS_DEFAULT_MODE;
140 opts->mode = option & S_IALLUGO;
159 inode->i_mode |= opts->mode;
194 if (opts->mode != DEBUGFS_DEFAULT_MODE)
195 seq_printf(m, ",mode=%o", opts->mode);
387 static struct dentry *__debugfs_create_file(const char *name, umode_t mode,
395 if (!(mode & S_IFMT))
396 mode |= S_IFREG;
397 BUG_ON(!S_ISREG(mode));
415 inode->i_mode = mode;
431 * @mode: the permission that the file should have.
455 struct dentry *debugfs_create_file(const char *name, umode_t mode,
460 return __debugfs_create_file(name, mode, parent, data,
470 * @mode: the permission that the file should have.
494 struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode,
499 return __debugfs_create_file(name, mode, parent, data,
509 * @mode: the permission that the file should have.
525 void debugfs_create_file_size(const char *name, umode_t mode,
530 struct dentry *de = debugfs_create_file(name, mode, parent, data, fops);