Home
last modified time | relevance | path

Searched refs:sysfs_path (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/ublk/
H A Dtest_generic_03.sh13 sysfs_path=/sys/block/ublkb"${dev_id}"
14 dma_align=$(cat "$sysfs_path"/queue/dma_alignment)
15 max_segments=$(cat "$sysfs_path"/queue/max_segments)
16 max_segment_size=$(cat "$sysfs_path"/queue/max_segment_size)
/linux/samples/hid/
H A Dhid_mouse.c81 const char *sysfs_path; in main() local
97 sysfs_path = argv[optind]; in main()
98 if (!sysfs_path) { in main()
109 hid_id = get_hid_id(sysfs_path); in main()
H A Dhid_surface_dial.c120 const char *sysfs_path; in main() local
157 sysfs_path = argv[optind]; in main()
158 if (!sysfs_path) { in main()
169 hid_id = get_hid_id(sysfs_path); in main()
/linux/tools/hv/
H A Dlsvmbus79 d.sysfs_path = '%s/%s' % (vmbus_sys_path, f)
110 d.device_id, d.sysfs_path, d.chn_vp_mapping
/linux/tools/testing/selftests/hid/tests/
H A Dbase.py232 sysfs_path = Path("/sys/bus/hid/drivers")
234 sysfs_path /= kernel_driver
238 sysfs_path = Path("/sys/module") / kernel_module.replace("-", "_")
239 if not sysfs_path.exists():
/linux/tools/perf/arch/x86/util/
H A Dpmu.c41 static struct perf_cpu_map *read_sysfs_cpu_map(const char *sysfs_path) in read_sysfs_cpu_map() argument
47 if (sysfs__read_str(sysfs_path, &buf, &buf_len) < 0) in read_sysfs_cpu_map()
/linux/tools/testing/selftests/vfio/lib/
H A Dvfio_pci_device.c208 char sysfs_path[PATH_MAX] = {0}; in vfio_pci_get_group_from_dev() local
212 snprintf(sysfs_path, PATH_MAX, "%s/%s/iommu_group", PCI_SYSFS_PATH, bdf); in vfio_pci_get_group_from_dev()
214 ret = readlink(sysfs_path, dev_iommu_group_path, sizeof(dev_iommu_group_path)); in vfio_pci_get_group_from_dev()
/linux/tools/power/x86/turbostat/
H A Dturbostat.c126 struct sysfs_path { struct
129 struct sysfs_path *next; argument
135 struct sysfs_path *sp;
4878 char *find_sysfs_path_by_id(struct sysfs_path *sp, int id) in find_sysfs_path_by_id()
8519 int initialize_cpu_set_from_sysfs(cpu_set_t *cpu_set, char *sysfs_path, char *sysfs_file) in initialize_cpu_set_from_sysfs() argument
8524 if (snprintf(path, 128, "%s/%s", sysfs_path, sysfs_file) > 128) in initialize_cpu_set_from_sysfs()
8525 err(-1, "%s %s", sysfs_path, sysfs_file); in initialize_cpu_set_from_sysfs()
8533 warn("read %s", sysfs_path); in initialize_cpu_set_from_sysfs()
8537 warnx("%s: cpu str malformat %s\n", sysfs_path, cpu_effective_str); in initialize_cpu_set_from_sysfs()
10658 struct sysfs_path *sp; in add_counter()
[all …]