Home
last modified time | relevance | path

Searched refs:path2 (Results 1 - 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/ia64/
H A Daliasing-test.c65 char *name, *path2; in scan_tree() local
83 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_tree()
84 strcpy(path2, path); in scan_tree()
85 strcat(path2, "/"); in scan_tree()
86 strcat(path2, name); in scan_tree()
89 rc = map_mem(path2, offset, length, touch); in scan_tree()
91 fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable" : "mappable"); in scan_tree()
93 fprintf(stderr, "PASS: %s 0x%lx-0x%lx not mappable\n", path2, offset, offset + length); in scan_tree()
95 fprintf(stderr, "FAIL: %s 0x%lx-0x%lx not accessible\n", path2, offset, offset + length); in scan_tree()
99 r = lstat(path2, in scan_tree()
150 char *name, *path2; scan_rom() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/ia64/
H A Daliasing-test.c65 char *name, *path2; in scan_tree() local
83 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_tree()
84 strcpy(path2, path); in scan_tree()
85 strcat(path2, "/"); in scan_tree()
86 strcat(path2, name); in scan_tree()
89 rc = map_mem(path2, offset, length, touch); in scan_tree()
91 fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable" : "mappable"); in scan_tree()
93 fprintf(stderr, "PASS: %s 0x%lx-0x%lx not mappable\n", path2, offset, offset + length); in scan_tree()
95 fprintf(stderr, "FAIL: %s 0x%lx-0x%lx not accessible\n", path2, offset, offset + length); in scan_tree()
99 r = lstat(path2, in scan_tree()
150 char *name, *path2; scan_rom() local
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Dpath.c62 int path__join(char *bf, size_t size, const char *path1, const char *path2) in path__join() argument
64 return scnprintf(bf, size, "%s%s%s", path1, path1[0] ? "/" : "", path2); in path__join()
67 int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3) in path__join3() argument
70 path2, path2[0] ? "/" : "", path3); in path__join3()
H A Dpath.h10 int path__join(char *bf, size_t size, const char *path1, const char *path2);
11 int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3);
/kernel/linux/linux-6.6/tools/perf/util/
H A Dpath.c37 int path__join(char *bf, size_t size, const char *path1, const char *path2) in path__join() argument
39 return scnprintf(bf, size, "%s%s%s", path1, path1[0] ? "/" : "", path2); in path__join()
42 int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3) in path__join3() argument
45 path2, path2[0] ? "/" : "", path3); in path__join3()
H A Dpath.h10 int path__join(char *bf, size_t size, const char *path1, const char *path2);
11 int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3);
/kernel/linux/linux-5.10/include/linux/
H A Dpath.h16 static inline int path_equal(const struct path *path1, const struct path *path2) in path_equal() argument
18 return path1->mnt == path2->mnt && path1->dentry == path2->dentry; in path_equal()
/kernel/linux/linux-6.6/include/linux/
H A Dpath.h16 static inline int path_equal(const struct path *path1, const struct path *path2) in path_equal() argument
18 return path1->mnt == path2->mnt && path1->dentry == path2->dentry; in path_equal()
/kernel/linux/linux-5.10/security/tomoyo/
H A Dfile.c183 [tomoyo_pp2mac[r->param.path2.operation]], in tomoyo_audit_path2_log()
184 r->param.path2.filename1->name, in tomoyo_audit_path2_log()
185 r->param.path2.filename2->name); in tomoyo_audit_path2_log()
302 return (acl->perm & (1 << r->param.path2.operation)) && in tomoyo_check_path2_acl()
303 tomoyo_compare_name_union(r->param.path2.filename1, &acl->name1) in tomoyo_check_path2_acl()
304 && tomoyo_compare_name_union(r->param.path2.filename2, in tomoyo_check_path2_acl()
899 * @path2: Pointer to "struct path".
904 const struct path *path2) in tomoyo_path2_perm()
912 .path2 = { .mnt = path2 in tomoyo_path2_perm()
903 tomoyo_path2_perm(const u8 operation, const struct path *path1, const struct path *path2) tomoyo_path2_perm() argument
[all...]
H A Dtomoyo.c256 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link() local
258 return tomoyo_path2_perm(TOMOYO_TYPE_LINK, &path1, &path2); in tomoyo_path_link()
277 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename() local
279 return tomoyo_path2_perm(TOMOYO_TYPE_RENAME, &path1, &path2); in tomoyo_path_rename()
H A Dcommon.h446 } path2; member
593 struct path path2; member
595 * Information on @path1, @path1's parent directory, @path2, @path2's
989 const struct path *path2);
H A Dmount.c104 obj.path2 = *dir; in tomoyo_mount_acl()
/kernel/linux/linux-6.6/security/tomoyo/
H A Dfile.c183 [tomoyo_pp2mac[r->param.path2.operation]], in tomoyo_audit_path2_log()
184 r->param.path2.filename1->name, in tomoyo_audit_path2_log()
185 r->param.path2.filename2->name); in tomoyo_audit_path2_log()
302 return (acl->perm & (1 << r->param.path2.operation)) && in tomoyo_check_path2_acl()
303 tomoyo_compare_name_union(r->param.path2.filename1, &acl->name1) in tomoyo_check_path2_acl()
304 && tomoyo_compare_name_union(r->param.path2.filename2, in tomoyo_check_path2_acl()
899 * @path2: Pointer to "struct path".
904 const struct path *path2) in tomoyo_path2_perm()
912 .path2 = { .mnt = path2 in tomoyo_path2_perm()
903 tomoyo_path2_perm(const u8 operation, const struct path *path1, const struct path *path2) tomoyo_path2_perm() argument
[all...]
H A Dtomoyo.c267 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link() local
269 return tomoyo_path2_perm(TOMOYO_TYPE_LINK, &path1, &path2); in tomoyo_path_link()
290 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename() local
293 const int err = tomoyo_path2_perm(TOMOYO_TYPE_RENAME, &path2, in tomoyo_path_rename()
299 return tomoyo_path2_perm(TOMOYO_TYPE_RENAME, &path1, &path2); in tomoyo_path_rename()
H A Dcommon.h446 } path2; member
593 struct path path2; member
595 * Information on @path1, @path1's parent directory, @path2, @path2's
988 const struct path *path2);
H A Dmount.c104 obj.path2 = *dir; in tomoyo_mount_acl()
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
H A DIt_process_plimits_007.cpp45 std::string path2 = "/proc/plimits/test/subtest/subtest"; in ItProcessPlimits007() local
54 ret = mkdir(path2.c_str(), mode); in ItProcessPlimits007()
/kernel/linux/linux-5.10/kernel/
H A Daudit_tree.c874 struct path path1, path2; in audit_tag_tree() local
878 err = kern_path(new, 0, &path2); in audit_tag_tree()
881 tagged = collect_mounts(&path2); in audit_tag_tree()
882 path_put(&path2); in audit_tag_tree()
906 err = kern_path(tree->pathname, 0, &path2); in audit_tag_tree()
908 good_one = path_is_under(&path1, &path2); in audit_tag_tree()
909 path_put(&path2); in audit_tag_tree()
/kernel/linux/linux-6.6/kernel/
H A Daudit_tree.c874 struct path path1, path2; in audit_tag_tree() local
878 err = kern_path(new, 0, &path2); in audit_tag_tree()
881 tagged = collect_mounts(&path2); in audit_tag_tree()
882 path_put(&path2); in audit_tag_tree()
905 err = kern_path(tree->pathname, 0, &path2); in audit_tag_tree()
907 good_one = path_is_under(&path1, &path2); in audit_tag_tree()
908 path_put(&path2); in audit_tag_tree()
/kernel/linux/linux-5.10/fs/ext4/
H A Dextents.c5625 struct ext4_ext_path *path2 = NULL; in ext4_swap_extents() local
5654 path2 = ext4_find_extent(inode2, lblk2, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents()
5655 if (IS_ERR(path2)) { in ext4_swap_extents()
5656 *erp = PTR_ERR(path2); in ext4_swap_extents()
5657 path2 = NULL; in ext4_swap_extents()
5661 ex2 = path2[path2->p_depth].p_ext; in ext4_swap_extents()
5678 next2 = ext4_ext_next_allocated_block(path2); in ext4_swap_extents()
5710 &path2, lblk2, 0); in ext4_swap_extents()
5736 &path2, lblk in ext4_swap_extents()
6004 struct ext4_ext_path *path = NULL, *path2 = NULL; ext4_ext_replay_set_iblocks() local
[all...]
/kernel/linux/linux-6.6/fs/ext4/
H A Dextents.c5617 struct ext4_ext_path *path2 = NULL; in ext4_swap_extents() local
5642 path2 = ext4_find_extent(inode2, lblk2, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents()
5643 if (IS_ERR(path2)) { in ext4_swap_extents()
5644 *erp = PTR_ERR(path2); in ext4_swap_extents()
5645 path2 = NULL; in ext4_swap_extents()
5649 ex2 = path2[path2->p_depth].p_ext; in ext4_swap_extents()
5666 next2 = ext4_ext_next_allocated_block(path2); in ext4_swap_extents()
5698 &path2, lblk2, 0); in ext4_swap_extents()
5724 &path2, lblk in ext4_swap_extents()
5986 struct ext4_ext_path *path = NULL, *path2 = NULL; ext4_ext_replay_set_iblocks() local
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Dfree-space-tree.c1052 struct btrfs_path *path, *path2; in populate_free_space_tree() local
1062 path2 = btrfs_alloc_path(); in populate_free_space_tree()
1063 if (!path2) { in populate_free_space_tree()
1068 ret = add_new_free_space_info(trans, block_group, path2); in populate_free_space_tree()
1103 path2, start, in populate_free_space_tree()
1126 ret = __add_to_free_space_tree(trans, block_group, path2, in populate_free_space_tree()
1136 btrfs_free_path(path2); in populate_free_space_tree()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dfree-space-tree.c1070 struct btrfs_path *path, *path2; in populate_free_space_tree() local
1080 path2 = btrfs_alloc_path(); in populate_free_space_tree()
1081 if (!path2) { in populate_free_space_tree()
1086 ret = add_new_free_space_info(trans, block_group, path2); in populate_free_space_tree()
1122 path2, start, in populate_free_space_tree()
1145 ret = __add_to_free_space_tree(trans, block_group, path2, in populate_free_space_tree()
1155 btrfs_free_path(path2); in populate_free_space_tree()
/kernel/linux/linux-5.10/Documentation/sphinx/
H A Dkfigure.py107 def isNewer(path1, path2):
108 """Returns True if ``path1`` is newer than ``path2``
110 If ``path1`` exists and is newer than ``path2`` the function returns
114 and os.stat(path1).st_ctime > os.stat(path2).st_ctime)
/kernel/linux/linux-6.6/Documentation/sphinx/
H A Dkfigure.py99 def isNewer(path1, path2):
100 """Returns True if ``path1`` is newer than ``path2``
102 If ``path1`` exists and is newer than ``path2`` the function returns
106 and os.stat(path1).st_ctime > os.stat(path2).st_ctime)

Completed in 33 milliseconds

12