Home
last modified time | relevance | path

Searched refs:path (Results 176 - 200 of 3779) sorted by relevance

12345678910>>...152

/kernel/linux/linux-5.10/tools/bootconfig/
H A Dmain.c132 static int load_xbc_file(const char *path, char **buf) in load_xbc_file() argument
137 fd = open(path, O_RDONLY); in load_xbc_file()
262 static int show_xbc(const char *path, bool list) in show_xbc() argument
268 ret = stat(path, &st); in show_xbc()
271 pr_err("Failed to stat %s: %d\n", path, ret); in show_xbc()
275 fd = open(path, O_RDONLY); in show_xbc()
278 pr_err("Failed to open initrd %s: %d\n", path, ret); in show_xbc()
290 ret = load_xbc_file(path, &buf); in show_xbc()
309 static int delete_xbc(const char *path) in delete_xbc() argument
315 fd = open(path, O_RDW in delete_xbc()
341 apply_xbc(const char *path, const char *xbc_path) apply_xbc() argument
468 char *path = NULL; main() local
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Dexport.c139 struct btrfs_path *path; in btrfs_get_parent() local
146 path = btrfs_alloc_path(); in btrfs_get_parent()
147 if (!path) in btrfs_get_parent()
161 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_get_parent()
166 if (path->slots[0] == 0) { in btrfs_get_parent()
171 path->slots[0]--; in btrfs_get_parent()
172 leaf = path->nodes[0]; in btrfs_get_parent()
174 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent()
181 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_parent()
187 btrfs_free_path(path); in btrfs_get_parent()
206 struct btrfs_path *path; btrfs_get_name() local
[all...]
/kernel/linux/linux-6.6/io_uring/
H A Dxattr.c90 const char __user *path; in io_getxattr_prep() local
97 path = u64_to_user_ptr(READ_ONCE(sqe->addr3)); in io_getxattr_prep()
99 ix->filename = getname_flags(path, LOOKUP_FOLLOW, NULL); in io_getxattr_prep()
127 struct path path; in io_getxattr() local
133 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_getxattr()
135 ret = do_getxattr(mnt_idmap(path.mnt), path.dentry, &ix->ctx); in io_getxattr()
137 path_put(&path); in io_getxattr()
183 const char __user *path; in io_setxattr_prep() local
206 __io_setxattr(struct io_kiocb *req, unsigned int issue_flags, const struct path *path) __io_setxattr() argument
236 struct path path; io_setxattr() local
[all...]
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-help.c125 static void exec_woman_emacs(const char *path, const char *page) in exec_woman_emacs() argument
131 if (!path) in exec_woman_emacs()
132 path = "emacsclient"; in exec_woman_emacs()
134 execlp(path, "emacsclient", "-e", man_page, NULL); in exec_woman_emacs()
137 exec_failed(path); in exec_woman_emacs()
141 static void exec_man_konqueror(const char *path, const char *page) in exec_man_konqueror() argument
150 if (path) { in exec_man_konqueror()
151 const char *file = strrchr(path, '/'); in exec_man_konqueror()
153 char *new = strdup(path); in exec_man_konqueror()
158 path in exec_man_konqueror()
172 exec_man_man(const char *path, const char *page) exec_man_man() argument
393 char path[PATH_MAX]; get_html_page_path() local
411 open_html(const char *path) open_html() argument
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Dutil.c94 int mkdir_p(char *path, mode_t mode) in mkdir_p() argument
98 char *d = path; in mkdir_p()
103 if (stat(path, &st) == 0) in mkdir_p()
110 err = stat(path, &st) && mkdir(path, mode); in mkdir_p()
117 return (stat(path, &st) && mkdir(path, mode)) ? -1 : 0; in mkdir_p()
139 * 0 - will remove only files under the 'path' directory
140 * 1 .. x - will dive in x-level deep under the 'path' directory
151 static int rm_rf_depth_pat(const char *path, in argument
206 rm_rf_a_kcore_dir(const char *path, const char *name) rm_rf_a_kcore_dir() argument
232 rm_rf_kcore_dir(const char *path) rm_rf_kcore_dir() argument
254 rm_rf_perf_data(const char *path) rm_rf_perf_data() argument
267 rm_rf(const char *path) rm_rf() argument
[all...]
/kernel/linux/linux-6.6/tools/bootconfig/
H A Dmain.c151 static int load_xbc_file(const char *path, char **buf) in load_xbc_file() argument
156 fd = open(path, O_RDONLY); in load_xbc_file()
281 static int show_xbc(const char *path, bool list) in show_xbc() argument
287 ret = stat(path, &st); in show_xbc()
290 pr_err("Failed to stat %s: %d\n", path, ret); in show_xbc()
294 fd = open(path, O_RDONLY); in show_xbc()
297 pr_err("Failed to open initrd %s: %d\n", path, ret); in show_xbc()
309 ret = load_xbc_file(path, &buf); in show_xbc()
328 static int delete_xbc(const char *path) in delete_xbc() argument
334 fd = open(path, O_RDW in delete_xbc()
360 apply_xbc(const char *path, const char *xbc_path) apply_xbc() argument
488 char *path = NULL; main() local
[all...]
/kernel/linux/linux-5.10/fs/reiserfs/
H A Dtail_conversion.c22 * path points to first direct item of the file regardless of how many of
26 struct treepath *path, struct buffer_head *unbh, in direct2indirect()
31 struct item_head *p_le_ih = tp_item_head(path); in direct2indirect()
66 if (search_for_position_by_key(sb, &end_key, path) == POSITION_FOUND) { in direct2indirect()
70 pathrelse(path); in direct2indirect()
74 p_le_ih = tp_item_head(path); in direct2indirect()
82 PATH_LAST_POSITION(path)++; in direct2indirect()
84 reiserfs_insert_item(th, path, &end_key, &ind_ih, inode, in direct2indirect()
88 retval = reiserfs_paste_into_item(th, path, &end_key, inode, in direct2indirect()
115 if (search_for_position_by_key(sb, &end_key, path) in direct2indirect()
25 direct2indirect(struct reiserfs_transaction_handle *th, struct inode *inode, struct treepath *path, struct buffer_head *unbh, loff_t tail_offset) direct2indirect() argument
202 indirect2direct(struct reiserfs_transaction_handle *th, struct inode *inode, struct page *page, struct treepath *path, const struct cpu_key *item_key, loff_t n_new_file_size, char *mode) indirect2direct() argument
[all...]
/kernel/linux/linux-6.6/fs/reiserfs/
H A Dtail_conversion.c22 * path points to first direct item of the file regardless of how many of
26 struct treepath *path, struct buffer_head *unbh, in direct2indirect()
31 struct item_head *p_le_ih = tp_item_head(path); in direct2indirect()
66 if (search_for_position_by_key(sb, &end_key, path) == POSITION_FOUND) { in direct2indirect()
70 pathrelse(path); in direct2indirect()
74 p_le_ih = tp_item_head(path); in direct2indirect()
82 PATH_LAST_POSITION(path)++; in direct2indirect()
84 reiserfs_insert_item(th, path, &end_key, &ind_ih, inode, in direct2indirect()
88 retval = reiserfs_paste_into_item(th, path, &end_key, inode, in direct2indirect()
115 if (search_for_position_by_key(sb, &end_key, path) in direct2indirect()
25 direct2indirect(struct reiserfs_transaction_handle *th, struct inode *inode, struct treepath *path, struct buffer_head *unbh, loff_t tail_offset) direct2indirect() argument
202 indirect2direct(struct reiserfs_transaction_handle *th, struct inode *inode, struct page *page, struct treepath *path, const struct cpu_key *item_key, loff_t n_new_file_size, char *mode) indirect2direct() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_hierarchical_stats.c48 #define CGROUP_PATH(p, n) {.path = p"/"n, .name = n}
51 const char *path, *name; member
70 /* reads file at 'path' to 'buf', returns 0 on success. */
71 static int read_from_file(const char *path, char *buf, size_t size) in read_from_file() argument
75 fd = open(path, O_RDONLY); in read_from_file()
133 fd = create_and_get_cgroup(cgroups[i].path); in setup_cgroups()
138 cgroups[i].id = get_cgroup_id(cgroups[i].path); in setup_cgroups()
175 if (join_parent_cgroup(cgroups[i].path)) in attach_processes()
196 static char buf[128], path[128]; in get_attach_counter() local
199 snprintf(path, 12 in get_attach_counter()
252 static char path[128]; setup_cgroup_iter() local
308 static char path[128]; destroy_progs() local
[all...]
/test/xts/acts/kernel_lite/fs_posix/src/
H A DFsOtherTest.cpp100 int FtwCheckDirTree(const char *path, const struct stat *sb, int flag) in FtwCheckDirTree() argument
109 if (strncmp(path, file0, sizeof(file0)) == 0) { in FtwCheckDirTree()
111 } else if (strncmp(path, file1, sizeof(file1)) == 0) { in FtwCheckDirTree()
114 LOG("> File error %s", path); in FtwCheckDirTree()
118 if (strncmp(path, dir0, sizeof(dir0)) == 0) { in FtwCheckDirTree()
120 } else if (strncmp(path, dir1, sizeof(dir1)) == 0) { in FtwCheckDirTree()
122 } else if (strncmp(path, dir2, sizeof(dir2)) == 0) { in FtwCheckDirTree()
124 } else if (strncmp(path, dir3, sizeof(dir3)) == 0) { in FtwCheckDirTree()
127 LOG("> File error %s", path); in FtwCheckDirTree()
145 int NftwCheckDirTree(const char *path, cons argument
[all...]
/test/testfwk/developer_test/aw/python/distributed/common/
H A Ddrivers.py53 file_path = os.path.join(longcommand_path, sh_file_name)
62 def is_exist_target_in_device(device, path, target):
63 command = "ls -l %s | grep %s" % (path, target)
74 cxx_cov_path = os.path.abspath(os.path.join(
83 if not os.path.exists(cxx_cov_path):
87 src_file_tar = os.path.join(DEVICE_TEST_PATH, "%s.tar.gz" % target_name)
89 tar_path = os.path.join(cxx_cov_path, "%s.tar.gz" % target_name)
122 case_dir, file_name = os.path.split(suite_file)
124 os.makedirs(os.path
[all...]
/test/xts/acts/
H A Dget_dependency.py25 home = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
26 manifest_home = os.path.join(home, ".repo")
27 preloader_path = os.path.join(home, "out", "preloader")
39 def get_f_dependes_dist(path):
42 for root, dirs, files in os.walk(path):
47 file_path = os.path
[all...]
/kernel/linux/linux-5.10/drivers/acpi/x86/
H A Dutils.c41 const char *path; member
45 #define ENTRY(status, hid, uid, path, cpu_model, dmi...) { \
50 path, \
60 #define PRESENT_ENTRY_PATH(path, cpu_model, dmi...) \
61 ENTRY(ACPI_STA_DEFAULT, "", NULL, path, cpu_model, dmi)
63 #define NOT_PRESENT_ENTRY_PATH(path, cpu_model, dmi...) \
64 ENTRY(0, "", NULL, path, cpu_model, dmi)
152 if (override_status_ids[i].path) { in acpi_device_override_status()
153 struct acpi_buffer path = { ACPI_ALLOCATE_BUFFER, NULL }; in acpi_device_override_status() local
156 if (acpi_get_name(adev->handle, ACPI_FULL_PATHNAME, &path)) in acpi_device_override_status()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/openat2/
H A Dhelpers.c22 int raw_openat2(int dfd, const char *path, void *how, size_t size) in raw_openat2() argument
24 int ret = syscall(__NR_openat2, dfd, path, how, size); in raw_openat2()
28 int sys_openat2(int dfd, const char *path, struct open_how *how) in sys_openat2() argument
30 return raw_openat2(dfd, path, how, sizeof(*how)); in sys_openat2()
33 int sys_openat(int dfd, const char *path, struct open_how *how) in sys_openat() argument
35 int ret = openat(dfd, path, how->flags, how->mode); in sys_openat()
47 int touchat(int dfd, const char *path) in touchat() argument
49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
71 bool fdequal(int fd, int dfd, const char *path) in fdequal() argument
79 if (!path) in fdequal()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dinterconnect.h29 * @path: reference to the interconnect path (internal use)
35 struct icc_path *path; member
47 void icc_put(struct icc_path *path);
48 int icc_enable(struct icc_path *path);
49 int icc_disable(struct icc_path *path);
50 int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw);
51 void icc_set_tag(struct icc_path *path, u32 tag);
52 const char *icc_get_name(struct icc_path *path);
79 static inline void icc_put(struct icc_path *path) in icc_put() argument
83 icc_enable(struct icc_path *path) icc_enable() argument
88 icc_disable(struct icc_path *path) icc_disable() argument
93 icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw) icc_set_bw() argument
98 icc_set_tag(struct icc_path *path, u32 tag) icc_set_tag() argument
102 icc_get_name(struct icc_path *path) icc_get_name() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/openat2/
H A Dhelpers.c22 int raw_openat2(int dfd, const char *path, void *how, size_t size) in raw_openat2() argument
24 int ret = syscall(__NR_openat2, dfd, path, how, size); in raw_openat2()
28 int sys_openat2(int dfd, const char *path, struct open_how *how) in sys_openat2() argument
30 return raw_openat2(dfd, path, how, sizeof(*how)); in sys_openat2()
33 int sys_openat(int dfd, const char *path, struct open_how *how) in sys_openat() argument
35 int ret = openat(dfd, path, how->flags, how->mode); in sys_openat()
47 int touchat(int dfd, const char *path) in touchat() argument
49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
71 bool fdequal(int fd, int dfd, const char *path) in fdequal() argument
79 if (!path) in fdequal()
[all...]
/test/xts/acts/graphic/graphicnapidrawingtest/
H A DNativeDrawingPathLargeValueTest.cpp23 #include "draw/path.h"
54 OH_Drawing_Path* path = OH_Drawing_PathCreate(); in HWTEST_F() local
55 EXPECT_EQ(path == nullptr, false); in HWTEST_F()
56 OH_Drawing_PathDestroy(path); in HWTEST_F()
193 OH_Drawing_Path* path = OH_Drawing_PathCreate(); in HWTEST_F() local
195 OH_Drawing_PathAddRect(path, 50, 50, 2160, 4096, OH_Drawing_PathDirection::PATH_DIRECTION_CW); in HWTEST_F()
196 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetWidth(), 2110.0)); in HWTEST_F()
197 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetHeight(), 4046.0)); in HWTEST_F()
198 OH_Drawing_PathDestroy(path); in HWTEST_F()
210 OH_Drawing_Path* path in HWTEST_F() local
[all...]
/kernel/linux/linux-6.6/tools/testing/kunit/
H A Dkunit_kernel.py31 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__))
32 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs')
117 kernel_path = os.path.join(build_dir, self._kernel_path)
147 linux_bin = os.path.join(build_dir, 'linux')
156 return os.path.join(build_dir, KCONFIG_PATH)
159 return os.path.join(build_dir, KUNITCONFIG_PATH)
162 return os.path.join(build_dir, OLD_KUNITCONFIG_PATH)
167 path = get_kunitconfig_path(build_dir)
168 if not os.path
[all...]
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dstdioextndk.cpp202 const char *path = "/data/storage/el2/base/files/Fzl.txt"; in DPrintf() local
205 FILE *file = fopen(path, mode); in DPrintf()
208 backParam = dprintf(SUCCESS, path); in DPrintf()
216 const char *path = "/data/storage/el2/base/files/Fzl.txt"; in FEof_unlocked() local
219 FILE *stream = fopen(path, mode); in FEof_unlocked()
230 const char *path = "/data/storage/el2/base/files/Fzl.txt"; in FError_unlocked() local
233 FILE *stream = fopen(path, mode); in FError_unlocked()
247 const char *path = "/data/storage/el2/base/files/Fzl.txt"; in FFlush_unlocked() local
249 FILE *stream = fopen(path, mode); in FFlush_unlocked()
261 const char *path in FGetC_unlocked() local
276 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FGetLn() local
295 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FGetS_unlocked() local
314 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FileNo_unlocked() local
329 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FClose() local
344 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FMemOpen() local
364 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FlockFile() local
380 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FileNo() local
394 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FError() local
410 const char *path = "hidumper -s 1201"; FGets() local
428 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FGetPos64() local
443 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FGetPos() local
457 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FGetC() local
473 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FFlush() local
487 const char *path = "/data/storage/el2/base/files/Fzl.txt"; FdOpen() local
[all...]
/kernel/linux/common_modules/xpm/validator/
H A Dexec_signature_info.c46 char path[DM_PARTITION_PATH_MAX]; member
52 { .path = "/", .len = 1, .s_dev = DM_VERITY_INVALID_DEV },
53 { .path = "/cust/", .len = 6, .s_dev = DM_VERITY_INVALID_DEV },
54 { .path = "/system/", .len = 8, .s_dev = DM_VERITY_INVALID_DEV },
55 { .path = "/vendor/", .len = 8, .s_dev = DM_VERITY_INVALID_DEV },
56 { .path = "/version/", .len = 9, .s_dev = DM_VERITY_INVALID_DEV },
57 { .path = "/preload/", .len = 9, .s_dev = DM_VERITY_INVALID_DEV },
58 { .path = "/sys_prod/", .len = 10, .s_dev = DM_VERITY_INVALID_DEV },
59 { .path = "/chip_prod/", .len = 11, .s_dev = DM_VERITY_INVALID_DEV },
60 { .path
94 struct path path; get_root_partition_dev() local
115 struct path path; get_dm_verity_partition_dev() local
132 char path[PATH_MAX] = {0}; find_partition_dev() local
420 char path[PATH_MAX] = {0}; test_print_info() local
[all...]
/kernel/linux/linux-6.6/fs/btrfs/
H A Dexport.c152 struct btrfs_path *path; in btrfs_get_parent() local
159 path = btrfs_alloc_path(); in btrfs_get_parent()
160 if (!path) in btrfs_get_parent()
174 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_get_parent()
179 if (path->slots[0] == 0) { in btrfs_get_parent()
184 path->slots[0]--; in btrfs_get_parent()
185 leaf = path->nodes[0]; in btrfs_get_parent()
187 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent()
194 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_parent()
200 btrfs_free_path(path); in btrfs_get_parent()
219 struct btrfs_path *path; btrfs_get_name() local
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A Diocost.h16 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now,
19 TP_ARGS(iocg, path, now, last_period, cur_period, vtime),
23 __string(cgroup, path)
38 __assign_str(cgroup, path);
63 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now,
66 TP_ARGS(iocg, path, now, last_period, cur_period, vtime)
70 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now,
73 TP_ARGS(iocg, path, now, last_period, cur_period, vtime)
78 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now,
82 TP_ARGS(iocg, path, no
[all...]
/test/testfwk/xdevice/plugins/devicetest/controllers/tools/
H A Dscreen_agent.py70 return os.path.join(base_path, DeccVariable.cur_case().suite_name, DeccVariable.cur_case().name)
76 if os.path.isfile(picture_name):
77 folder = os.path.dirname(picture_name)
79 return picture_name, os.path.basename(picture_name)
102 fol_path = os.path.join(folder, save_name)
118 def _do_capture(cls, _device, link, path, title, ext=".png"):
126 link, path = _device.capture(link, path, ext)
128 cls.compress_image(path)
131 if path an
[all...]
/test/xts/acts/arkui/libuv/
H A Dgenlocal.py73 if os.path.exists(hapdirpath):
79 mustpass = os.path.join(G_MUSTPASSPATH, "{}{}".format(suiteitem, G_MUSTPASSFILE))
100 pagefilename = os.path.join(hapdirpath, G_PATHDIRPATH, "{}.ets".format(suitename))
101 attrtmp = os.path.join(G_TMPPATH, G_PAGEATTRTEMPPATH)
116 temppagefilename = os.path.join(G_TMPPATH, G_PAGETEMPPATH)
122 pagefilename = os.path.join(hapdirpath, G_PATHDIRPATH, "{}.ets".format(suitename))
128 attrtmp = os.path.join(G_TMPPATH, G_PAGEATTRTEMPPATH)
138 temptestfilename = os.path.join(G_TMPPATH, G_TESTCASETEMPPATH)
139 testfilename = os.path.join(hapdirpath, G_TESTDIRPATH, "{}.test.ets".format(suitename))
148 configjsonname = os.path
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Dpath.c14 #include "path.h"
25 static char bad_path[] = "/bad-path/";
37 static char *cleanup_path(char *path) in cleanup_path() argument
40 if (!memcmp(path, "./", 2)) { in cleanup_path()
41 path += 2; in cleanup_path()
42 while (*path == '/') in cleanup_path()
43 path++; in cleanup_path()
45 return path; in cleanup_path()
86 char path[PATH_MAX]; in is_directory() local
89 sprintf(path, " in is_directory()
[all...]

Completed in 13 milliseconds

12345678910>>...152