tools/testing/selftests/powerpc/dexcr/dexcr_test.c
Source file repositories/reference/linux-study-clean/tools/testing/selftests/powerpc/dexcr/dexcr_test.c
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/selftests/powerpc/dexcr/dexcr_test.c- Extension
.c- Size
- 7807 bytes
- Lines
- 216
- 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.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
Dependency Surface
errno.hfcntl.hstdlib.hstring.hsys/prctl.hunistd.hdexcr.hutils.h
Detected Declarations
function dexcr_prctl_onexec_test_childfunction dexcr_prctl_aspect_testfunction dexcr_prctl_ibrtpd_testfunction dexcr_prctl_srapd_testfunction dexcr_prctl_nphie_testfunction main
Annotated Snippet
if (argc == 3 && !strcmp(argv[0], "dexcr_prctl_onexec_test_child")) {
unsigned long which;
err = parse_ulong(argv[1], strlen(argv[1]), &which, 10);
FAIL_IF_MSG(err, "failed to parse which value for child");
return dexcr_prctl_onexec_test_child(which, argv[2]);
}
FAIL_IF_MSG(true, "unknown test case");
}
/*
* Otherwise we are the main test invocation and run the full suite
*/
err |= test_harness(dexcr_prctl_ibrtpd_test, "dexcr_prctl_ibrtpd");
err |= test_harness(dexcr_prctl_srapd_test, "dexcr_prctl_srapd");
err |= test_harness(dexcr_prctl_nphie_test, "dexcr_prctl_nphie");
return err;
}
Annotation
- Immediate include surface: `errno.h`, `fcntl.h`, `stdlib.h`, `string.h`, `sys/prctl.h`, `unistd.h`, `dexcr.h`, `utils.h`.
- Detected declarations: `function dexcr_prctl_onexec_test_child`, `function dexcr_prctl_aspect_test`, `function dexcr_prctl_ibrtpd_test`, `function dexcr_prctl_srapd_test`, `function dexcr_prctl_nphie_test`, `function main`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.