tools/testing/selftests/kvm/lib/s390/diag318_test_handler.c

Source file repositories/reference/linux-study-clean/tools/testing/selftests/kvm/lib/s390/diag318_test_handler.c

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/kvm/lib/s390/diag318_test_handler.c
Extension
.c
Size
1916 bytes
Lines
81
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

if (!printed_skip) {
			fprintf(stdout, "KVM_CAP_S390_DIAG318 not supported. "
				"Skipping diag318 test.\n");
			printed_skip = true;
		}
		return 0;
	}

	/*
	 * If a test has previously requested the diag318 info,
	 * then don't bother spinning up a temporary VM again.
	 */
	if (!diag318_info)
		diag318_info = diag318_handler();

	return diag318_info;
}

Annotation

Implementation Notes