Lines Matching defs:path
832 static int proc_sys_getattr(const struct path *path, struct kstat *stat,
835 struct inode *inode = d_inode(path->dentry);
1081 static int sysctl_err(const char *path, struct ctl_table *table, char *fmt, ...)
1091 path, table->procname, &vaf);
1097 static int sysctl_check_table_array(const char *path, struct ctl_table *table)
1104 err |= sysctl_err(path, table, "array not allowed");
1109 err |= sysctl_err(path, table, "array not allowed");
1115 static int sysctl_check_table(const char *path, struct ctl_table *table)
1120 err |= sysctl_err(path, table, "Not a file");
1134 err |= sysctl_err(path, table, "No data");
1136 err |= sysctl_err(path, table, "No maxlen");
1138 err |= sysctl_check_table_array(path, table);
1141 err |= sysctl_err(path, table, "No proc_handler");
1144 err |= sysctl_err(path, table, "bogus .mode 0%o",
1265 * @path: The path to the directory the sysctl table is in.
1306 const char *path, struct ctl_table *table)
1326 if (sysctl_check_table(path, table))
1336 for (name = path; name; name = nextname) {
1373 * @path: The path to the directory the sysctl table is in.
1381 struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table)
1384 path, table);
1389 * __register_sysctl_init() - register sysctl table to path
1390 * @path: path name for sysctl base
1391 * @table: This is the sysctl table that needs to be registered to the path
1403 * Context: Can only be called after your respective sysctl base path has been
1408 void __init __register_sysctl_init(const char *path, struct ctl_table *table,
1411 struct ctl_table_header *hdr = register_sysctl(path, table);
1414 pr_err("failed when register_sysctl %s to %s\n", table_name, path);
1420 static char *append_path(const char *path, char *pos, const char *name)
1424 if (((pos - path) + namelen + 2) >= PATH_MAX)
1452 static int register_leaf_sysctl_tables(const char *path, char *pos,
1490 header = __register_sysctl_table(set, path, files);
1510 child_pos = append_path(path, pos, entry->procname);
1514 err = register_leaf_sysctl_tables(path, child_pos, subheader,
1529 * @path: The path to the directory the sysctl table is in.
1539 const struct ctl_path *path, struct ctl_table *table)
1552 for (component = path; component->procname; component++) {
1600 * @path: The path to the directory the sysctl table is in.
1608 struct ctl_table_header *register_sysctl_paths(const struct ctl_path *path,
1612 path, table);
1787 char *path;
1837 path = kasprintf(GFP_KERNEL, "sys/%s", param);
1838 if (!path)
1839 panic("%s: Failed to allocate path for %s\n", __func__, param);
1840 strreplace(path, '.', '/');
1842 file = file_open_root_mnt(*proc_mnt, path, O_WRONLY, 0);
1867 wret, len, path, param, val);
1875 kfree(path);