Home
last modified time | relevance | path

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

/linux-6.14.4/tools/perf/tests/
Dhwmon_pmu.c74 int hwmon_dirfd = -1, test_dirfd = -1, file; in test_pmu_get() local
85 test_dirfd = open(dir, O_PATH|O_DIRECTORY); in test_pmu_get()
86 if (test_dirfd < 0) { in test_pmu_get()
92 if (mkdirat(test_dirfd, "hwmon1234", 0755) < 0) { in test_pmu_get()
96 hwmon_dirfd = openat(test_dirfd, "hwmon1234", O_DIRECTORY); in test_pmu_get()
143 if (test_dirfd >= 0) in test_pmu_get()
144 close(test_dirfd); in test_pmu_get()