Home
last modified time | relevance | path

Searched refs:path2 (Results 1 – 14 of 14) sorted by relevance

/linux-4.1.27/Documentation/ia64/
Daliasing-test.c68 char *name, *path2; in scan_tree() local
86 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_tree()
87 strcpy(path2, path); in scan_tree()
88 strcat(path2, "/"); in scan_tree()
89 strcat(path2, name); in scan_tree()
92 rc = map_mem(path2, offset, length, touch); in scan_tree()
94 …fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable"… in scan_tree()
96 fprintf(stderr, "PASS: %s 0x%lx-0x%lx not mappable\n", path2, offset, offset + length); in scan_tree()
98 fprintf(stderr, "FAIL: %s 0x%lx-0x%lx not accessible\n", path2, offset, offset + length); in scan_tree()
102 r = lstat(path2, &buf); in scan_tree()
[all …]
/linux-4.1.27/include/linux/
Dpath.h15 static inline int path_equal(const struct path *path1, const struct path *path2) in path_equal() argument
17 return path1->mnt == path2->mnt && path1->dentry == path2->dentry; in path_equal()
/linux-4.1.27/security/tomoyo/
Dfile.c182 [tomoyo_pp2mac[r->param.path2.operation]], in tomoyo_audit_path2_log()
183 r->param.path2.filename1->name, in tomoyo_audit_path2_log()
184 r->param.path2.filename2->name); in tomoyo_audit_path2_log()
297 return (acl->perm & (1 << r->param.path2.operation)) && in tomoyo_check_path2_acl()
298 tomoyo_compare_name_union(r->param.path2.filename1, &acl->name1) in tomoyo_check_path2_acl()
299 && tomoyo_compare_name_union(r->param.path2.filename2, in tomoyo_check_path2_acl()
886 struct path *path2) in tomoyo_path2_perm() argument
894 .path2 = *path2, in tomoyo_path2_perm()
905 !tomoyo_get_realpath(&buf2, path2)) in tomoyo_path2_perm()
920 r.param.path2.operation = operation; in tomoyo_path2_perm()
[all …]
Dtomoyo.c278 struct path path2 = { new_dir->mnt, new_dentry }; in tomoyo_path_link() local
279 return tomoyo_path2_perm(TOMOYO_TYPE_LINK, &path1, &path2); in tomoyo_path_link()
298 struct path path2 = { new_parent->mnt, new_dentry }; in tomoyo_path_rename() local
299 return tomoyo_path2_perm(TOMOYO_TYPE_RENAME, &path1, &path2); in tomoyo_path_rename()
Dcommon.h442 } path2; member
589 struct path path2; member
978 struct path *path2);
Dmount.c100 obj.path2 = *dir; in tomoyo_mount_acl()
Dcondition.c707 dentry = obj->path2.dentry; in tomoyo_get_attributes()
/linux-4.1.27/tools/perf/util/
Dutil.h298 const char *path1, const char *path2) in path__join() argument
300 return scnprintf(bf, size, "%s%s%s", path1, path1[0] ? "/" : "", path2); in path__join()
304 const char *path1, const char *path2, in path__join3() argument
309 path2, path2[0] ? "/" : "", path3); in path__join3()
/linux-4.1.27/kernel/
Daudit_tree.c781 struct path path1, path2; in audit_tag_tree() local
785 err = kern_path(new, 0, &path2); in audit_tag_tree()
788 tagged = collect_mounts(&path2); in audit_tag_tree()
789 path_put(&path2); in audit_tag_tree()
813 err = kern_path(tree->pathname, 0, &path2); in audit_tag_tree()
815 good_one = path_is_under(&path1, &path2); in audit_tag_tree()
816 path_put(&path2); in audit_tag_tree()
/linux-4.1.27/fs/btrfs/
Drelocation.c685 struct btrfs_path *path2; local
706 path2 = btrfs_alloc_path();
707 if (!path1 || !path2) {
712 path2->reada = 2;
911 path2->search_commit_root = 1;
912 path2->skip_locking = 1;
913 path2->lowest_level = level;
914 ret = btrfs_search_slot(NULL, root, node_key, path2, 0, 0);
915 path2->lowest_level = 0;
920 if (ret > 0 && path2->slots[level] > 0)
[all …]
/linux-4.1.27/fs/ext4/
Dextents.c5556 struct ext4_ext_path *path2 = NULL; in ext4_swap_extents() local
5585 path2 = ext4_find_extent(inode2, lblk2, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents()
5586 if (unlikely(IS_ERR(path2))) { in ext4_swap_extents()
5587 *erp = PTR_ERR(path2); in ext4_swap_extents()
5588 path2 = NULL; in ext4_swap_extents()
5592 ex2 = path2[path2->p_depth].p_ext; in ext4_swap_extents()
5609 next2 = ext4_ext_next_allocated_block(path2); in ext4_swap_extents()
5641 &path2, lblk2, 0); in ext4_swap_extents()
5667 &path2, lblk2 + len, 0); in ext4_swap_extents()
5680 *erp = ext4_ext_get_access(handle, inode2, path2 + path2->p_depth); in ext4_swap_extents()
[all …]
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192se/
Dphy.c1058 u8 path1, path2; in rtl92s_phy_bb_config() local
1070 path2 = (u8)(rtl92s_phy_query_bb_reg(hw, ROFDM0_TRXPATHENABLE, 0xf)); in rtl92s_phy_bb_config()
1071 pathmap = path1 | path2; in rtl92s_phy_bb_config()
1088 path1, path2, pathmap); in rtl92s_phy_bb_config()
/linux-4.1.27/fs/ceph/
Dmds_client.c1881 const char *path2 = NULL; in create_request_message() local
1900 &path2, &pathlen2, &ino2, &freepath2); in create_request_message()
1939 ceph_encode_filepath(&p, end, ino2, path2); in create_request_message()
1992 kfree((char *)path2); in create_request_message()
/linux-4.1.27/fs/
Dnamespace.c2933 int path_is_under(struct path *path1, struct path *path2) in path_is_under() argument
2937 res = is_path_reachable(real_mount(path1->mnt), path1->dentry, path2); in path_is_under()