tools/testing/selftests/timers/nsleep-lat.c

Source file repositories/reference/linux-study-clean/tools/testing/selftests/timers/nsleep-lat.c

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/timers/nsleep-lat.c
Extension
.c
Size
4154 bytes
Lines
167
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

while (length <= (NSEC_PER_SEC * 10)) {
			ret = nanosleep_lat_test(clockid, length);
			if (ret)
				break;
			length *= 100;

		}

		if (ret == UNSUPPORTED) {
			ksft_test_result_skip("%s\n", clockstring(clockid));
		} else {
			ksft_test_result(ret >= 0, "%s\n",
					 clockstring(clockid));
		}
	}

	ksft_finished();
}

Annotation

Implementation Notes