Searched refs:path (Results 76 - 100 of 1248) sorted by relevance

1234567891011>>

/linux-master/tools/power/cpupower/lib/
H A Dacpi_cppc.c20 char path[SYSFS_PATH_MAX]; local
22 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/acpi_cppc/%s",
24 return cpupower_read_sysfs(path, buf, buflen);
/linux-master/security/tomoyo/
H A Dload_policy.c39 struct path path; local
43 if (kern_path(tomoyo_loader, LOOKUP_FOLLOW, &path)) {
48 path_put(&path);
/linux-master/tools/verification/dot2/
H A Ddot2k.py34 if os.path.exists(self.monitor_templates_dir) == True:
42 if os.path.exists(kernel_path) == True:
46 if os.path.exists("/usr/share/dot2/dot2k_templates/") == True:
53 def __open_file(self, path):
55 fd = open(path)
57 raise Exception("Cannot open the file: %s" % path)
149 path = "%s/%s" % (self.name, file_name)
151 file = open(path, 'w')
155 print("Fail creating file: %s" % path)
162 path
[all...]
/linux-master/tools/hv/
H A Dvmbus_testing28 # debugfs path for hyperv must exist before proceeding
30 if not os.path.isdir(debugfs_hyperv_path):
78 path = args.path if "path" in arg_set else None
79 if (path and path[-1] == "/"):
80 path = path[:-1]
81 validate_args_path(path, arg_se
[all...]
/linux-master/fs/
H A Dfs_struct.c6 #include <linux/path.h>
15 void set_fs_root(struct fs_struct *fs, const struct path *path) argument
17 struct path old_root;
19 path_get(path);
23 fs->root = *path;
34 void set_fs_pwd(struct fs_struct *fs, const struct path *path) argument
36 struct path old_pwd;
38 path_get(path);
[all...]
H A Dnamei.c99 * inside the path - always follow.
191 /* The empty path is special. */
541 * path_get - get a reference to a path
542 * @path: path to get the reference to
544 * Given a path increment the reference count to the dentry and the vfsmount.
546 void path_get(const struct path *path) argument
548 mntget(path->mnt);
549 dget(path
559 path_put(const struct path *path) argument
568 struct path path; member in struct:nameidata
701 __legitimize_path(struct path *path, unsigned seq, unsigned mseq) argument
717 legitimize_path(struct nameidata *nd, struct path *path, unsigned seq) argument
994 nd_jump_link(const struct path *path) argument
1272 follow_up(struct path *path) argument
1295 choose_mountpoint_rcu(struct mount *m, const struct path *root, struct path *path, unsigned *seqp) argument
1315 choose_mountpoint(struct mount *m, const struct path *root, struct path *path) argument
1345 follow_automount(struct path *path, int *count, unsigned lookup_flags) argument
1377 __traverse_mounts(struct path *path, unsigned flags, bool *jumped, int *count, unsigned lookup_flags) argument
1430 traverse_mounts(struct path *path, bool *jumped, int *count, unsigned lookup_flags) argument
1445 follow_down_one(struct path *path) argument
1466 follow_down(struct path *path, unsigned int flags) argument
1482 __follow_mount_rcu(struct nameidata *nd, struct path *path) argument
1526 handle_mounts(struct nameidata *nd, struct dentry *dentry, struct path *path) argument
1840 struct path path; local
1884 struct path path; local
1924 struct path path; local
2473 path_lookupat(struct nameidata *nd, unsigned flags, struct path *path) argument
2506 filename_lookup(int dfd, struct filename *name, unsigned flags, struct path *path, struct path *root) argument
2578 __kern_path_locked(int dfd, struct filename *name, struct path *path) argument
2600 kern_path_locked(const char *name, struct path *path) argument
2609 user_path_locked_at(int dfd, const char __user *name, struct path *path) argument
2619 kern_path(const char *name, unsigned int flags, struct path *path) argument
2656 vfs_path_lookup(struct dentry *dentry, struct vfsmount *mnt, const char *name, unsigned int flags, struct path *path) argument
2891 path_pts(struct path *path) argument
2917 user_path_at_empty(int dfd, const char __user *name, unsigned flags, struct path *path, int *empty) argument
3227 may_open_dev(const struct path *path) argument
3233 may_open(struct mnt_idmap *idmap, const struct path *path, int acc_mode, int flag) argument
3292 const struct path *path = &filp->f_path; local
3748 struct path path; local
3769 struct path path; local
3861 filename_create(int dfd, struct filename *name, struct path *path, unsigned int lookup_flags) argument
3929 kern_path_create(int dfd, const char *pathname, struct path *path, unsigned int lookup_flags) argument
3940 done_path_create(struct path *path, struct dentry *dentry) argument
3949 user_path_create(int dfd, const char __user *pathname, struct path *path, unsigned int lookup_flags) argument
4030 struct path path; local
4133 struct path path; local
4228 struct path path; local
4367 struct path path; local
4492 struct path path; local
[all...]
H A Dd_path.c84 * With RCU path tracing, it may race with d_move(). Use READ_ONCE() to
105 const struct path *root, struct prepend_buffer *p)
141 * prepend_path - Prepend path string to a buffer
142 * @path: the dentry/vfsmount to report
156 static int prepend_path(const struct path *path, argument
157 const struct path *root,
172 error = __prepend_path(path->dentry, real_mount(path->mnt), root, &b);
200 * __d_path - return the path o
215 __d_path(const struct path *path, const struct path *root, char *buf, int buflen) argument
227 d_absolute_path(const struct path *path, char *buf, int buflen) argument
265 d_path(const struct path *path, char *buf, int buflen) argument
[all...]
/linux-master/include/video/
H A Dmmp_disp.h66 /* parameters used by path/overlay */
93 /* path related para: mode */
143 /* overlay describes a z-order indexed slot in each path. */
147 struct mmp_path *path; member in struct:mmp_overlay
175 /* path name used to connect to proper path configed */
189 int (*check_status)(struct mmp_path *path);
190 struct mmp_overlay *(*get_overlay)(struct mmp_path *path,
192 int (*get_modelist)(struct mmp_path *path,
196 void (*set_mode)(struct mmp_path *path, struc
238 mmp_path_set_mode(struct mmp_path *path, struct mmp_mode *mode) argument
244 mmp_path_set_onoff(struct mmp_path *path, int status) argument
249 mmp_path_get_modelist(struct mmp_path *path, struct mmp_mode **modelist) argument
256 mmp_path_get_overlay( struct mmp_path *path, int overlay_id) argument
[all...]
/linux-master/fs/overlayfs/
H A Dparams.h24 struct path path; member in struct:ovl_fs_context_layer
28 struct path upper;
29 struct path work;
/linux-master/tools/testing/selftests/mm/
H A Dwrite_hugetlb_memory.sh10 path=$5
22 ./write_to_hugetlbfs -p "$path" -s "$size" "$write" "$populate" -m "$method" \
/linux-master/tools/testing/selftests/nsfs/
H A Downer.c30 char path[128]; local
55 snprintf(path, sizeof(path), "/proc/%d/ns/uts", pid);
56 ns = open(path, O_RDONLY);
58 return pr_err("Unable to open %s", path);
67 snprintf(path, sizeof(path), "/proc/%d/ns/user", pid);
68 if (stat(path, &st2))
/linux-master/include/linux/
H A Dusermode_driver.h5 #include <linux/path.h>
11 struct path wd;
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_d_path_check_types.c15 int BPF_PROG(d_path_check_rdonly_mem, struct path *path, struct kstat *stat, argument
/linux-master/drivers/md/
H A Ddm-uevent.h22 struct dm_target *ti, const char *path,
39 struct dm_target *ti, const char *path,
38 dm_path_uevent(enum dm_uevent_type event_type, struct dm_target *ti, const char *path, unsigned int nr_valid_paths) argument
/linux-master/tools/lib/api/fs/
H A Dtracing_path.c101 char *path = get_tracing_file("events"); local
103 if (path) {
104 dir = opendir(path);
105 put_events_file(path);
113 char *path = get_tracing_file("events"); local
116 if (!path) {
121 ret = scandir(path, namelist, NULL, alphasort);
122 put_events_file(path);
/linux-master/tools/testing/selftests/damon/
H A D_damon_sysfs.py7 def write_file(path, string):
11 with open(path, 'w') as f:
17 def read_file(path):
21 with open(path, 'r') as f:
45 return os.path.join(self.scheme.sysfs_dir(), 'access_pattern')
49 os.path.join(self.sysfs_dir(), 'sz', 'min'), self.size[0])
53 os.path.join(self.sysfs_dir(), 'sz', 'max'), self.size[1])
56 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'min'),
60 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'max'),
65 os.path
[all...]
/linux-master/fs/coda/
H A Dpioctl.c53 struct path path; local
68 error = user_path_at(AT_FDCWD, data.path,
69 data.follow ? LOOKUP_FOLLOW : 0, &path);
73 target_inode = d_inode(path.dentry);
86 path_put(&path);
/linux-master/tools/perf/tests/
H A Dapi-io.c37 static int make_test_file(char path[PATH_MAX], const char *contents) argument
42 strcpy(path, TEMPL);
43 fd = mkstemp(path);
51 unlink(path);
58 static int setup_test(char path[PATH_MAX], const char *contents, argument
61 if (make_test_file(path, contents))
64 io->fd = open(path, O_RDONLY);
66 pr_debug("Failed to open '%s'\n", path);
67 unlink(path);
74 unlink(path);
81 cleanup_test(char path[PATH_MAX], struct io *io) argument
90 char path[PATH_MAX]; local
137 char path[PATH_MAX]; local
218 char path[PATH_MAX]; local
295 char path[PATH_MAX]; local
[all...]
/linux-master/sound/soc/intel/avs/
H A Dpath.h23 /* device path management */
34 /* path pipelines management */
61 void avs_path_free(struct avs_path *path);
66 int avs_path_bind(struct avs_path *path);
67 int avs_path_unbind(struct avs_path *path);
68 int avs_path_reset(struct avs_path *path);
69 int avs_path_pause(struct avs_path *path);
70 int avs_path_run(struct avs_path *path, int trigger);
/linux-master/fs/btrfs/
H A Dfree-space-tree.h43 struct btrfs_path *path, int cow);
46 struct btrfs_path *path, u64 start, u64 size);
49 struct btrfs_path *path, u64 start, u64 size);
52 struct btrfs_path *path);
55 struct btrfs_path *path);
57 struct btrfs_path *path, u64 offset);
H A Draid-stripe-tree.c20 struct btrfs_path *path; local
32 path = btrfs_alloc_path();
33 if (!path)
41 ret = btrfs_search_slot(trans, stripe_root, &key, path, -1, 1);
46 if (path->slots[0] == 0)
48 path->slots[0]--;
51 leaf = path->nodes[0];
52 slot = path->slots[0];
65 ret = btrfs_del_item(trans, stripe_root, path);
69 btrfs_release_path(path);
158 struct btrfs_path *path; local
[all...]
/linux-master/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-cmdq.c143 static int mdp_path_subfrm_require(const struct mdp_path *path, argument
147 const int p_id = path->mdp_dev->mdp_data->mdp_plat_id;
149 const struct mtk_mdp_driver_data *data = path->mdp_dev->mdp_data;
155 num_comp = CFG_GET(MT8183, path->config, num_components);
157 num_comp = CFG_GET(MT8195, path->config, num_components);
160 index = __get_pipe(path->mdp_dev, path->comps[0].comp->public_id);
162 mutex = __get_mutex(path->mdp_dev, p);
171 inner_id = CFG_GET(MT8183, path->config, components[index].type);
173 inner_id = CFG_GET(MT8195, path
196 mdp_path_subfrm_run(const struct mdp_path *path, struct mdp_cmdq_cmd *cmd, struct mdp_pipe_info *p, u32 count) argument
261 mdp_path_ctx_init(struct mdp_dev *mdp, struct mdp_path *path) argument
299 mdp_path_config_subfrm(struct mdp_cmdq_cmd *cmd, struct mdp_path *path, u32 count) argument
391 mdp_path_config(struct mdp_dev *mdp, struct mdp_cmdq_cmd *cmd, struct mdp_path *path) argument
593 struct mdp_path *path = NULL; local
[all...]
/linux-master/fs/btrfs/tests/
H A Dqgroup-tests.c23 struct btrfs_path *path; local
35 path = btrfs_alloc_path();
36 if (!path) {
41 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size);
44 btrfs_free_path(path);
48 leaf = path->nodes[0];
49 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item);
64 btrfs_free_path(path);
73 struct btrfs_path *path; local
84 path
124 struct btrfs_path *path; local
155 struct btrfs_path *path; local
[all...]
/linux-master/io_uring/
H A Dxattr.c90 const char __user *path; local
97 path = u64_to_user_ptr(READ_ONCE(sqe->addr3));
99 ix->filename = getname_flags(path, LOOKUP_FOLLOW, NULL);
127 struct path path; local
133 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL);
135 ret = do_getxattr(mnt_idmap(path.mnt), path.dentry, &ix->ctx);
137 path_put(&path);
183 const char __user *path; local
206 __io_setxattr(struct io_kiocb *req, unsigned int issue_flags, const struct path *path) argument
236 struct path path; local
[all...]
/linux-master/tools/perf/arch/
H A Dcommon.c107 char *path, *tmp = NULL; local
118 path = strtok_r(env, ":", &tmp);
119 while (path) {
120 scnprintf(buf, sizeof(buf), "%s/%s", path, name);
125 path = strtok_r(NULL, ":", &tmp);
145 const char *name, char **path)
153 * We don't need to try to find objdump path for native system.
154 * Just use default binutils path (e.g.: "objdump").
213 *path = buf;
217 *path
144 perf_env__lookup_binutils_path(struct perf_env *env, const char *name, char **path) argument
221 perf_env__lookup_objdump(struct perf_env *env, char **path) argument
[all...]

Completed in 201 milliseconds

1234567891011>>