Lines Matching refs:path

39  * @path: path for the mount point
45 struct ctl_table_header *register_sysctl_mount_point(const char *path)
47 return register_sysctl(path, sysctl_mount_point);
845 const struct path *path, struct kstat *stat,
848 struct inode *inode = d_inode(path->dentry);
1092 static int sysctl_err(const char *path, struct ctl_table *table, char *fmt, ...)
1102 path, table->procname, &vaf);
1108 static int sysctl_check_table_array(const char *path, struct ctl_table *table)
1115 err |= sysctl_err(path, table, "array not allowed");
1120 err |= sysctl_err(path, table, "array not allowed");
1125 err |= sysctl_err(path, table, "array not allowed");
1131 static int sysctl_check_table(const char *path, struct ctl_table_header *header)
1149 err |= sysctl_err(path, entry, "No data");
1151 err |= sysctl_err(path, entry, "No maxlen");
1153 err |= sysctl_check_table_array(path, entry);
1156 err |= sysctl_err(path, entry, "No proc_handler");
1159 err |= sysctl_err(path, entry, "bogus .mode 0%o",
1285 static struct ctl_dir *sysctl_mkdir_p(struct ctl_dir *dir, const char *path)
1289 for (name = path; name; name = nextname) {
1316 * @path: The path to the directory the sysctl table is in.
1364 const char *path, struct ctl_table *table, size_t table_size)
1378 if (sysctl_check_table(path, header))
1387 dir = sysctl_mkdir_p(dir, path);
1409 * @path: The path to the directory the sysctl table is in. If the path
1425 struct ctl_table_header *register_sysctl_sz(const char *path, struct ctl_table *table,
1429 path, table, table_size);
1434 * __register_sysctl_init() - register sysctl table to path
1435 * @path: path name for sysctl base. If that path doesn't exist we will create
1437 * @table: This is the sysctl table that needs to be registered to the path.
1454 void __init __register_sysctl_init(const char *path, struct ctl_table *table,
1457 struct ctl_table_header *hdr = register_sysctl_sz(path, table, table_size);
1460 pr_err("failed when register_sysctl_sz %s to %s\n", table_name, path);
1610 char *path;
1660 path = kasprintf(GFP_KERNEL, "sys/%s", param);
1661 if (!path)
1662 panic("%s: Failed to allocate path for %s\n", __func__, param);
1663 strreplace(path, '.', '/');
1665 file = file_open_root_mnt(*proc_mnt, path, O_WRONLY, 0);
1690 wret, len, path, param, val);
1698 kfree(path);