Home
last modified time | relevance | path

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

/linux-6.15/tools/testing/selftests/ia64/
H A Daliasing-test.c65 char *name, *path2; in scan_tree() local
84 strcpy(path2, path); in scan_tree()
85 strcat(path2, "/"); in scan_tree()
86 strcat(path2, name); in scan_tree()
108 free(path2); in scan_tree()
150 char *name, *path2; in scan_rom() local
169 strcpy(path2, path); in scan_rom()
170 strcat(path2, "/"); in scan_rom()
171 strcat(path2, name); in scan_rom()
174 rc = read_rom(path2); in scan_rom()
[all …]
/linux-6.15/tools/perf/tests/
H A Dtests-scripts.c33 char path[PATH_MAX], path2[PATH_MAX], *exec_path; in shell_tests__dir_fd() local
50 if (readlink("/proc/self/exe", path2, sizeof path2) < 0) in shell_tests__dir_fd()
53 if (lstat(path2, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) { in shell_tests__dir_fd()
54 scnprintf(path, sizeof(path), path2); in shell_tests__dir_fd()
55 if (readlink(path, path2, sizeof path2) < 0) in shell_tests__dir_fd()
59 p = strrchr(path2, '/'); in shell_tests__dir_fd()
62 scnprintf(path, sizeof(path), "%s/tests/shell", path2); in shell_tests__dir_fd()
66 scnprintf(path, sizeof(path), "%s/source/tests/shell", path2); in shell_tests__dir_fd()
/linux-6.15/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);
/linux-6.15/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()
/linux-6.15/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()
304 && tomoyo_compare_name_union(r->param.path2.filename2, in tomoyo_check_path2_acl()
904 const struct path *path2) in tomoyo_path2_perm() argument
912 .path2 = { .mnt = path2->mnt, .dentry = path2->dentry } in tomoyo_path2_perm()
923 !tomoyo_get_realpath(&buf2, path2)) in tomoyo_path2_perm()
938 r.param.path2.operation = operation; in tomoyo_path2_perm()
939 r.param.path2.filename1 = &buf1; in tomoyo_path2_perm()
[all …]
H A Dtomoyo.c268 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link() local
270 return tomoyo_path2_perm(TOMOYO_TYPE_LINK, &path1, &path2); in tomoyo_path_link()
291 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename() local
294 const int err = tomoyo_path2_perm(TOMOYO_TYPE_RENAME, &path2, in tomoyo_path_rename()
300 return tomoyo_path2_perm(TOMOYO_TYPE_RENAME, &path1, &path2); in tomoyo_path_rename()
H A Dcommon.h446 } path2; member
593 struct path path2; member
988 const struct path *path2);
H A Dmount.c104 obj.path2 = *dir; in tomoyo_mount_acl()
H A Dcondition.c728 dentry = obj->path2.dentry; in tomoyo_get_attributes()
/linux-6.15/fs/bcachefs/
H A Dbtree_key_cache.c498 struct btree_path *path2; in btree_key_cache_flush_pos() local
501 trans_for_each_path(trans, path2, i) in btree_key_cache_flush_pos()
502 if (path2 != path) in btree_key_cache_flush_pos()
503 __bch2_btree_path_unlock(trans, path2); in btree_key_cache_flush_pos()
632 struct btree_path *path2; in bch2_btree_key_cache_drop() local
634 trans_for_each_path(trans, path2, i) in bch2_btree_key_cache_drop()
635 if (path2->l[0].b == (void *) ck) { in bch2_btree_key_cache_drop()
636 __bch2_btree_path_unlock(trans, path2); in bch2_btree_key_cache_drop()
637 path2->l[0].b = ERR_PTR(-BCH_ERR_no_btree_node_drop); in bch2_btree_key_cache_drop()
638 path2->should_be_locked = false; in bch2_btree_key_cache_drop()
[all …]
H A Dbtree_update_interior.c1596 btree_path_idx_t path1 = 0, path2 = 0; in btree_split() local
1642 bch2_btree_path_level_init(trans, trans->paths + path2, n2); in btree_split()
1659 trans->paths[path2].locks_want++; in btree_split()
1736 bch2_trans_node_add(trans, trans->paths + path2, n2); in btree_split()
1745 if (path2) { in btree_split()
1746 __bch2_btree_path_unlock(trans, trans->paths + path2); in btree_split()
1747 bch2_path_put(trans, path2, true); in btree_split()
2454 struct btree_path *path2 = btree_iter_path(trans, &iter2); in __bch2_btree_node_update_key() local
2455 BUG_ON(path2->level != b->c.level); in __bch2_btree_node_update_key()
2456 BUG_ON(!bpos_eq(path2->pos, new_key->k.p)); in __bch2_btree_node_update_key()
[all …]
/linux-6.15/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()
/linux-6.15/fs/ext4/
H A Dextents.c5541 path2 = ext4_find_extent(inode2, lblk2, path2, EXT4_EX_NOCACHE); in ext4_swap_extents()
5542 if (IS_ERR(path2)) { in ext4_swap_extents()
5543 *erp = PTR_ERR(path2); in ext4_swap_extents()
5547 ex2 = path2[path2->p_depth].p_ext; in ext4_swap_extents()
5599 if (IS_ERR(path2)) { in ext4_swap_extents()
5600 *erp = PTR_ERR(path2); in ext4_swap_extents()
5629 if (IS_ERR(path2)) { in ext4_swap_extents()
5630 *erp = PTR_ERR(path2); in ext4_swap_extents()
5643 *erp = ext4_ext_get_access(handle, inode2, path2 + path2->p_depth); in ext4_swap_extents()
5952 path2 = ext4_find_extent(inode, cur, path2, 0); in ext4_ext_replay_set_iblocks()
[all …]
/linux-6.15/fs/btrfs/
H A Dfree-space-tree.c1066 BTRFS_PATH_AUTO_FREE(path2); in populate_free_space_tree()
1075 path2 = btrfs_alloc_path(); in populate_free_space_tree()
1076 if (!path2) in populate_free_space_tree()
1081 ret = add_new_free_space_info(trans, block_group, path2); in populate_free_space_tree()
1117 path2, start, in populate_free_space_tree()
1140 ret = __add_to_free_space_tree(trans, block_group, path2, in populate_free_space_tree()
/linux-6.15/Documentation/sphinx/
H A Dkfigure.py95 def isNewer(path1, path2): argument
102 and os.stat(path1).st_ctime > os.stat(path2).st_ctime)
/linux-6.15/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
H A Dphy.c1012 u8 path1, path2; in rtl92s_phy_bb_config() local
1024 path2 = (u8)(rtl92s_phy_query_bb_reg(hw, ROFDM0_TRXPATHENABLE, 0xf)); in rtl92s_phy_bb_config()
1025 pathmap = path1 | path2; in rtl92s_phy_bb_config()
1040 path1, path2, pathmap); in rtl92s_phy_bb_config()
/linux-6.15/fs/ceph/
H A Dmds_client.c2972 const char *path2 = NULL; in create_request_message() local
3003 &path2, &pathlen2, &ino2, &freepath2, true); in create_request_message()
3158 ceph_encode_filepath(&p, end, ino2, path2); in create_request_message()
3222 ceph_mdsc_free_path((char *)path2, pathlen2); in create_request_message()
/linux-6.15/fs/
H A Dnamespace.c4703 bool path_is_under(const struct path *path1, const struct path *path2) in path_is_under() argument
4707 res = is_path_reachable(real_mount(path1->mnt), path1->dentry, path2); in path_is_under()
/linux-6.15/fs/nfs/
H A Dnfs4proc.c4145 struct nfs4_pathname *path2) in _is_same_nfs4_pathname() argument
4149 if (path1->ncomponents != path2->ncomponents) in _is_same_nfs4_pathname()
4152 if (path1->components[i].len != path2->components[i].len) in _is_same_nfs4_pathname()
4154 if (memcmp(path1->components[i].data, path2->components[i].data, in _is_same_nfs4_pathname()