Lines Matching full:os
19 import os
25 this_dir = os.path.dirname(os.path.realpath(__file__))
26 sys.path.append(os.path.join(this_dir, "../../kselftest/"))
41 for path, dirs, _ in os.walk(sysfs_devices):
44 pci_controllers.append(os.path.join(path, d))
51 for d in os.scandir(sysfs_usb_devices):
53 usb_controllers.append(os.path.realpath(d.path))
64 with open(os.path.join(sysfs_dev_dir, "uevent")) as f:
69 sysfs_dev_dir = os.path.dirname(sysfs_dev_dir)
80 with open(os.path.join(sysfs_dev_dir, "uevent")) as f:
85 sysfs_dev_dir = os.path.dirname(sysfs_dev_dir)
89 with open(os.path.join(sysfs_dev_dir, "firmware_node", "uid")) as f:
95 with open(os.path.join(sysfs_dev_dir, "uevent")) as f:
101 with open(os.path.join(sysfs_dev_dir, "uevent")) as f:
147 dirname = os.path.join(
150 return [os.path.realpath(dirname)]
156 path_glob = os.path.join(path_glob, pci_dev_sysfs_fmt.format(dev_func))
158 dir_list = glob.glob(os.path.join(parent_sysfs, path_glob))
172 sysfs_path = os.path.join(parent_sysfs, pathdir)
193 intf_dirs = glob.glob(os.path.join(sysfs_dir, intf_dir_fmt))
199 driver_link = os.path.join(sysfs_dir, intf_dir, "driver")
200 ksft.test_result(os.path.isdir(driver_link), test_name)
202 driver_link = os.path.join(sysfs_dir, "driver")
204 ksft.test_result(os.path.isdir(driver_link), test_name)
264 os.path.exists(sysfs_dir), current_node["meta"]["pathname"] + ".device"
298 if os.path.exists(platform_compatible_file):
304 vendor_dmi_file = os.path.join(dmi_id_dir, "sys_vendor")
305 product_dmi_file = os.path.join(dmi_id_dir, "product_name")
340 if not os.path.exists(args.boards_dir):
346 full_board_filename = os.path.join(args.boards_dir, board_filename + ".yaml")
348 if os.path.exists(full_board_filename):