Searched refs:hwmon_dirfd (Results 1 – 1 of 1) sorted by relevance
75 int hwmon_dirfd = -1, test_dirfd = -1, file; in test_pmu_get() local98 hwmon_dirfd = open(dir, O_PATH|O_DIRECTORY); in test_pmu_get()99 if (hwmon_dirfd < 0) { in test_pmu_get()103 file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600); in test_pmu_get()120 file = openat(hwmon_dirfd, item->name, O_WRONLY | O_CREAT, 0600); in test_pmu_get()145 if (hwmon_dirfd >= 0) in test_pmu_get()146 close(hwmon_dirfd); in test_pmu_get()