/openbmc/linux/security/apparmor/ |
H A D | mount.c | 282 AA_BUG(!path); in path_flags() 366 struct aa_profile *profile, const struct path *path, in match_mnt() argument 395 struct aa_label *label, const struct path *path, in aa_remount() argument 404 AA_BUG(!path); in aa_remount() 421 struct aa_label *label, const struct path *path, in aa_bind_mount() argument 430 AA_BUG(!path); in aa_bind_mount() 459 struct aa_label *label, const struct path *path, in aa_mount_change_type() argument 467 AA_BUG(!path); in aa_mount_change_type() 518 const struct path *path, const char *orig_name) in aa_move_mount_old() argument 536 const char *dev_name, const struct path *path, in aa_new_mount() argument [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | verity.c | 119 if (!path) in drop_verity_items() 144 path->slots[0]--; in drop_verity_items() 150 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in drop_verity_items() 162 ret = btrfs_del_items(trans, root, path, path->slots[0], 1); in drop_verity_items() 174 btrfs_free_path(path); in drop_verity_items() 231 if (!path) in write_key_bytes() 271 btrfs_free_path(path); in write_key_bytes() 315 if (!path) in read_key_bytes() 332 path->slots[0]--; in read_key_bytes() 392 path->slots[0]++; in read_key_bytes() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/utils/ |
H A D | ftools.py | 11 def write_file(path, data): argument 16 with open(path, "w") as f: 19 def append_file(path, data): argument 24 with open(path, "a") as f: 27 def read_file(path): argument 29 with open(path) as f: 33 def remove_from_file(path, data): argument 38 rdata = read_file(path) 52 write_file(path, "\n".join(contents))
|
/openbmc/qemu/scripts/ |
H A D | nsis.py | 15 def signcode(path): argument 19 subprocess.run([cmd, path]) 33 dll = os.path.join(search_path, dep) 34 if not os.path.exists(dll): 56 prefix = os.path.splitdrive(args.prefix)[1] 63 os.path.join(destdir + prefix, "system-mui-text.nsh"), "w" 66 os.path.join(destdir + prefix, "qemu-system-*.exe") 68 exe = os.path.basename(exe) 92 dlldir = os.path.join(destdir + prefix, "dll") 104 dllfile = os.path.join(dlldir, os.path.basename(dep)) [all …]
|
/openbmc/openbmc/poky/meta/lib/bblayers/ |
H A D | create.py | 24 with open(os.path.join(os.path.dirname(__file__), template_dir, template)) as fd: 31 layerdir = os.path.abspath(args.layerdir) 32 if os.path.exists(layerdir): 37 conf = os.path.join(layerdir, 'conf') 40 layername = os.path.basename(os.path.normpath(args.layerdir)) 45 readme = os.path.join(layerdir, 'README') 51 dn = os.path.dirname 52 license_src = os.path.join(dn(dn(dn(__file__))), copying) 53 license_dst = os.path.join(layerdir, copying) 62 layerconf = os.path.join(conf, 'layer.conf') [all …]
|
/openbmc/phosphor-ipmi-blobs/test/ |
H A D | manager_stat_unittest.cpp | 21 std::string path = "/asdf/asdf"; in TEST() local 22 EXPECT_CALL(*m1ptr, canHandleBlob(path)).WillOnce(Return(false)); in TEST() 24 EXPECT_FALSE(mgr.stat(path, &meta)); in TEST() 37 std::string path = "/asdf/asdf"; in TEST() local 38 EXPECT_CALL(*m1ptr, canHandleBlob(path)).WillOnce(Return(true)); in TEST() 39 EXPECT_CALL(*m1ptr, stat(path, &meta)).WillOnce(Return(false)); in TEST() 41 EXPECT_FALSE(mgr.stat(path, &meta)); in TEST() 54 std::string path = "/asdf/asdf"; in TEST() local 55 EXPECT_CALL(*m1ptr, canHandleBlob(path)).WillOnce(Return(true)); in TEST() 56 EXPECT_CALL(*m1ptr, stat(path, &meta)).WillOnce(Return(true)); in TEST() [all …]
|
/openbmc/openbmc/meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/evb-npcm845-yaml-config/ |
H A D | evb-npcm845-ipmi-sensors.yaml | 13 path: /xyz/openbmc_project/sensors/temperature/EVB_Temp 43 path: /xyz/openbmc_project/sensors/voltage/ADC1 64 path: /xyz/openbmc_project/sensors/voltage/ADC2 69 path: /xyz/openbmc_project/sensors/voltage/ADC3 74 path: /xyz/openbmc_project/sensors/voltage/ADC4 79 path: /xyz/openbmc_project/sensors/voltage/ADC5 84 path: /xyz/openbmc_project/sensors/voltage/ADC6 89 path: /xyz/openbmc_project/sensors/voltage/ADC7 94 path: /xyz/openbmc_project/sensors/voltage/ADC8 100 path: /xyz/openbmc_project/sensors/fan_tach/Fan1 [all …]
|
/openbmc/linux/fs/smb/client/ |
H A D | dfs_cache.c | 40 const char *path; member 82 if (!path || strlen(path) < 3 || (*path != '\\' && *path != '/')) in dfs_cache_canonical_path() 130 kfree(ce->path); in flush_cache_ent() 240 ce->path, in dump_ce() 540 if (dfs_path_equal(ce->path, strlen(ce->path), path, len)) { in __lookup_cache_entry() 570 rc = cache_entry_hash(path, strlen(path), &hash); in lookup_cache_entry() 573 return __lookup_cache_entry(path, hash, strlen(path)); in lookup_cache_entry() 581 e = path + strlen(path) - 1; in lookup_cache_entry() 1192 if (!path) in __refresh_ses_referral() 1196 if (!path) in __refresh_ses_referral() [all …]
|
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/ |
H A D | isoimage-isohybrid.py | 56 if os.path.exists(splash): 107 if os.path.exists(splash): 208 if os.path.exists(isodir): 261 if not os.path.isdir(rootfs_dir): 263 if not os.path.isdir(rootfs_dir): 284 if not os.path.isfile(initrd): 286 if not os.path.isfile(initrd): 309 if os.path.exists(target_dir): 339 if not os.path.isfile(os.path.join(target_dir, "boot.cfg")): 448 iso_img = "%s.p1" % disk.path [all …]
|
/openbmc/openbmc/meta-arm/meta-arm-systemready/classes/ |
H A D | arm-systemready-acs.bbclass | 39 if os.path.lexists(linkfile): 41 os.symlink(os.path.basename(deployfile), linkfile) 52 report_file = os.path.join(workdir, "report.txt") 53 report_file_dest = os.path.join(deploydir, "report.txt") 54 if os.path.exists(report_file): 115 if os.path.lexists(loglink): 117 os.symlink(os.path.basename(logdir), loglink) 122 top_link = os.path.join(top_logdir, log_name) 123 log_target = os.path.relpath(logdir, top_logdir) 137 scripts_path = os.path.join(systemready_scripts_dir, [all …]
|
/openbmc/phosphor-dbus-monitor/src/example/ |
H A D | test.yaml | 6 - name: test path group 8 group: path 103 paths: test path group 109 paths: test path group 115 paths: test path group 121 paths: test path group 127 paths: test path group 133 paths: test path group 139 paths: test path group 145 paths: test path group [all …]
|
/openbmc/phosphor-inventory-manager/test/ |
H A D | associations_test.cpp | 14 "path": "system/PS0", 45 "path": "system/fan42", 146 fs::path jsonDir; 162 fs::path path = jsonDir / "associations.json"; in writeFile() local 164 std::ofstream f{path}; in writeFile() 168 return path; in writeFile() 186 Manager m(bus, path); in TEST_F() 247 Manager m(bus, path); in TEST_F() 261 Manager m(bus, path); in TEST_F() 275 Manager m(bus, path); in TEST_F() [all …]
|
/openbmc/phosphor-psu-code-mgmt/src/ |
H A D | utils.hpp | 39 std::string getService(sdbusplus::bus_t& bus, const char* path, 123 getServices(sdbusplus::bus_t& bus, const char* path, 137 const char* path, const char* interface, 144 any result = getPropertyImpl(bus, service, path, interface, in getProperty() 157 std::string getService(sdbusplus::bus_t& bus, const char* path, 161 const char* path, 175 const char* path, const char* interface, 179 inline std::string getService(sdbusplus::bus_t& bus, const char* path, in getService() argument 182 return getUtils().getService(bus, path, interface); in getService() 188 return getUtils().getServices(bus, path, interface); in getServices() [all …]
|
/openbmc/linux/fs/overlayfs/ |
H A D | overlayfs.h | 263 WARN_ON(path->dentry->d_sb != path->mnt->mnt_sb); in ovl_do_getxattr() 265 err = vfs_getxattr(mnt_idmap(path->mnt), path->dentry, in ovl_do_getxattr() 288 const struct path *path, in ovl_path_getxattr() argument 375 struct path path = { .mnt = ovl_upper_mnt(ofs), .dentry = dentry }; in ovl_do_tmpfile() local 431 void ovl_path_upper(struct dentry *dentry, struct path *path); 432 void ovl_path_lower(struct dentry *dentry, struct path *path); 433 void ovl_path_lowerdata(struct dentry *dentry, struct path *path); 471 struct file *ovl_path_open(const struct path *path, int flags); 508 int ovl_ensure_verity_loaded(struct path *path); 697 int ovl_getattr(struct mnt_idmap *idmap, const struct path *path, [all …]
|
/openbmc/phosphor-pid-control/dbus/ |
H A D | dbuswrite.hpp | 35 createDbusWrite(const std::string& path, int64_t min, int64_t max, 38 DbusWritePercent(const std::string& path, int64_t min, int64_t max, in DbusWritePercent() argument 41 path(path), connectionName(connectionName) in DbusWritePercent() 48 std::string path; member in pid_control::DbusWritePercent 57 createDbusWrite(const std::string& path, int64_t min, int64_t max, 60 DbusWrite(const std::string& path, int64_t min, int64_t max, in DbusWrite() argument 63 path(path), connectionName(connectionName) in DbusWrite() 70 std::string path; member in pid_control::DbusWrite
|
/openbmc/linux/fs/reiserfs/ |
H A D | tail_conversion.c | 26 struct treepath *path, struct buffer_head *unbh, in direct2indirect() argument 31 struct item_head *p_le_ih = tp_item_head(path); in direct2indirect() 70 pathrelse(path); in direct2indirect() 74 p_le_ih = tp_item_head(path); in direct2indirect() 82 PATH_LAST_POSITION(path)++; in direct2indirect() 119 p_le_ih = tp_item_head(path); in direct2indirect() 226 copy_item_head(&s_ih, tp_item_head(path)); in indirect2direct() 247 if (path_changed(&s_ih, path)) { in indirect2direct() 249 if (search_for_position_by_key(sb, item_key, path) in indirect2direct() 254 copy_item_head(&s_ih, tp_item_head(path)); in indirect2direct() [all …]
|
/openbmc/openbmc/poky/meta/classes/ |
H A D | go-vendor.bbclass | 23 module_path = repo if not path else path 70 if os.path.exists(vendor_dir): 72 if not os.path.exists(linkname): 133 tmp = os.path.join(src, pathMajor) 135 if os.path.exists(tmp): 155 os.path.exists(rootdirLicese): 179 topdir = os.path.dirname(line) 195 for path in fetched_paths: 196 if path not in vendored_paths: 197 realpath = os.path.join(vendor_dir, path) [all …]
|
/openbmc/phosphor-mrw-tools/ |
H A D | gen_ipmi_sensor.pl | 57 my $path = ''; 104 $path =~ s/^instance:/\//; 187 my ($sensorName, $target, $path) = @_; 188 $path = "/xyz/openbmc_project/sensors/temperature/"; 202 $path .= "dimm" . $pos . "_temp"; 207 $path .= "p" . $procNo . "_vdd_temp"; 212 $path .= "gpu" . $pos . "_mem_temp"; 217 $path .= "gpu" . $pos . "_core_temp"; 222 return $path; 286 my ($path) = @_; [all …]
|
/openbmc/linux/tools/testing/selftests/efivarfs/ |
H A D | open-unlink.c | 13 static int set_immutable(const char *path, int immutable) in set_immutable() argument 20 fd = open(path, O_RDONLY); in set_immutable() 44 static int get_immutable(const char *path) in get_immutable() argument 51 fd = open(path, O_RDONLY); in get_immutable() 70 const char *path; in main() local 79 path = argv[1]; in main() 89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main() 103 rc = get_immutable(path); in main() 108 rc = set_immutable(path, 0); in main() 115 fd = open(path, O_RDONLY); in main() [all …]
|
/openbmc/openpower-proc-control/test/ |
H A D | utest.cpp | 40 auto path = mkdtemp(dir); in SetUp() local 41 assert(path != nullptr); in SetUp() 43 _slaveBaseDir = path; in SetUp() 55 std::filesystem::path _slaveBaseDir; 56 std::filesystem::path _slaveDir; 88 std::filesystem::path path; in TEST_F() local 94 path = masterDir; in TEST_F() 101 path = _slaveDir; in TEST_F() 102 path /= subdir.str(); in TEST_F() 105 ASSERT_EQ(t->getCFAMPath(), path); in TEST_F()
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | paths.cpp | 31 fs::path getPELIDFile() in getPELIDFile() 33 fs::path logIDPath{EXTENSION_PERSIST_DIR}; in getPELIDFile() 34 logIDPath /= fs::path{"pels"} / fs::path{"pelID"}; in getPELIDFile() 38 fs::path getPELRepoPath() in getPELRepoPath() 40 std::filesystem::path repoPath{EXTENSION_PERSIST_DIR}; in getPELRepoPath() 45 fs::path getPELReadOnlyDataPath() in getPELReadOnlyDataPath() 47 return std::filesystem::path{"/usr/share/phosphor-logging/pels"}; in getPELReadOnlyDataPath()
|
/openbmc/linux/scripts/ |
H A D | leaking_addresses.pl | 414 my ($path) = @_; 417 return 1 if (/^$path$/); 470 my ($path) = @_; 472 if (may_leak_address($path)) { 490 my $path = "$pwd/$file"; 491 next if (-l $path); 497 next if (skip($path)); 501 if (-d $path) { 502 push @dirs, $path; 506 dprint("parsing: $path\n"); [all …]
|
/openbmc/linux/Documentation/admin-guide/device-mapper/ |
H A D | dm-queue-length.rst | 5 dm-queue-length is a path selector module for device-mapper targets, 6 which selects a path with the least number of in-flight I/Os. 7 The path selector name is 'queue-length'. 9 Table parameters for each path: [<repeat_count>] 14 path before switching to the next path. 18 Status for each path: <status> <fail-count> <in-flight> 22 <status>: 'A' if the path is active, 'F' if the path is failed. 23 <fail-count>: The number of path failures. 24 <in-flight>: The number of in-flight I/Os on the path. 32 dm-queue-length selects a path with the minimum 'in-flight'.
|
/openbmc/s2600wf-misc/callback-manager/include/ |
H A D | callback_manager.hpp | 54 for (const std::string& path : fatal) in setLocalAssociations() local 56 result.emplace(threshold::critical, "", path); in setLocalAssociations() 58 for (const std::string& path : critical) in setLocalAssociations() local 60 result.emplace(threshold::warning, "", path); in setLocalAssociations() 62 for (const std::string& path : warning) in setLocalAssociations() local 64 result.emplace(threshold::warning, "", path); in setLocalAssociations() 73 for (const std::string& path : critical) in setSensorAssociations() local 75 if (!boost::starts_with(path, sensorPath)) in setSensorAssociations() 81 for (const std::string& path : warning) in setSensorAssociations() local 83 if (!boost::starts_with(path, sensorPath)) in setSensorAssociations() [all …]
|
/openbmc/phosphor-mboxd/vpnor/test/ |
H A D | tmpd.hpp | 32 root = fs::path{tmpdir}; in VpnorRoot() 39 fs::path tocFilePath = root / "ro" / PARTITION_TOC_FILE; in VpnorRoot() 76 fs::path ro() in ro() 78 return fs::path{root} / "ro"; in ro() 80 fs::path rw() in rw() 82 return fs::path{root} / "rw"; in rw() 84 fs::path prsv() in prsv() 86 return fs::path{root} / "prsv"; in prsv() 88 fs::path patch() in patch() 90 return fs::path{root} / "patch"; in patch() [all …]
|