Home
last modified time | relevance | path

Searched refs:fc (Results 1 – 5 of 5) sorted by relevance

/kernel/cgroup/
Dcgroup-v1.c923 int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param) in cgroup1_parse_param() argument
925 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup1_parse_param()
930 opt = fs_parse(fc, cgroup1_fs_parameters, param, &result); in cgroup1_parse_param()
934 ret = vfs_parse_fs_param_source(fc, param); in cgroup1_parse_param()
941 return invalfc(fc, "Disabled controller '%s'", in cgroup1_parse_param()
946 return invalfc(fc, "Unknown subsys name '%s'", param->key); in cgroup1_parse_param()
980 return invalfc(fc, "release_agent respecified"); in cgroup1_parse_param()
985 if ((fc->user_ns != &init_user_ns) || !capable(CAP_SYS_ADMIN)) in cgroup1_parse_param()
986 return invalfc(fc, "Setting release_agent not allowed"); in cgroup1_parse_param()
996 return invalfc(fc, "Empty name"); in cgroup1_parse_param()
[all …]
Dcgroup-internal.h60 static inline struct cgroup_fs_context *cgroup_fc2context(struct fs_context *fc) in cgroup_fc2context() argument
62 struct kernfs_fs_context *kfc = fc->fs_private; in cgroup_fc2context()
239 int cgroup_do_get_tree(struct fs_context *fc);
295 int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param);
296 int cgroup1_get_tree(struct fs_context *fc);
Dcgroup.c1943 static int cgroup2_parse_param(struct fs_context *fc, struct fs_parameter *param) in cgroup2_parse_param() argument
1945 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup2_parse_param()
1949 opt = fs_parse(fc, cgroup2_fs_parameters, param, &result); in cgroup2_parse_param()
2006 static int cgroup_reconfigure(struct fs_context *fc) in cgroup_reconfigure() argument
2008 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup_reconfigure()
2162 int cgroup_do_get_tree(struct fs_context *fc) in cgroup_do_get_tree() argument
2164 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup_do_get_tree()
2168 if (fc->fs_type == &cgroup2_fs_type) in cgroup_do_get_tree()
2172 ret = kernfs_get_tree(fc); in cgroup_do_get_tree()
2180 struct super_block *sb = fc->root->d_sb; in cgroup_do_get_tree()
[all …]
/kernel/bpf/
Dinode.c644 static int bpf_parse_param(struct fs_context *fc, struct fs_parameter *param) in bpf_parse_param() argument
646 struct bpf_mount_opts *opts = fc->fs_private; in bpf_parse_param()
650 opt = fs_parse(fc, bpf_fs_parameters, param, &result); in bpf_parse_param()
657 opt = vfs_parse_fs_param_source(fc, param); in bpf_parse_param()
743 static int bpf_fill_super(struct super_block *sb, struct fs_context *fc) in bpf_fill_super() argument
746 struct bpf_mount_opts *opts = fc->fs_private; in bpf_fill_super()
764 static int bpf_get_tree(struct fs_context *fc) in bpf_get_tree() argument
766 return get_tree_nodev(fc, bpf_fill_super); in bpf_get_tree()
769 static void bpf_free_fc(struct fs_context *fc) in bpf_free_fc() argument
771 kfree(fc->fs_private); in bpf_free_fc()
[all …]
/kernel/
Dresource.c1973 static int iomem_fs_init_fs_context(struct fs_context *fc) in iomem_fs_init_fs_context() argument
1975 return init_pseudo(fc, DEVMEM_MAGIC) ? 0 : -ENOMEM; in iomem_fs_init_fs_context()