tools/testing/selftests/arm64/pauth/helper.c
Source file repositories/reference/linux-study-clean/tools/testing/selftests/arm64/pauth/helper.c
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/selftests/arm64/pauth/helper.c- Extension
.c- Size
- 660 bytes
- Lines
- 40
- 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
helper.h
Detected Declarations
function keyia_signfunction keyib_signfunction keyda_signfunction keydb_signfunction keyg_sign
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
// Copyright (C) 2020 ARM Limited
#include "helper.h"
size_t keyia_sign(size_t ptr)
{
asm volatile("paciza %0" : "+r" (ptr));
return ptr;
}
size_t keyib_sign(size_t ptr)
{
asm volatile("pacizb %0" : "+r" (ptr));
return ptr;
}
size_t keyda_sign(size_t ptr)
{
asm volatile("pacdza %0" : "+r" (ptr));
return ptr;
}
size_t keydb_sign(size_t ptr)
{
asm volatile("pacdzb %0" : "+r" (ptr));
return ptr;
}
size_t keyg_sign(size_t ptr)
{
/* output is encoded in the upper 32 bits */
size_t dest = 0;
size_t modifier = 0;
asm volatile("pacga %0, %1, %2" : "=r" (dest) : "r" (ptr), "r" (modifier));
return dest;
}
Annotation
- Immediate include surface: `helper.h`.
- Detected declarations: `function keyia_sign`, `function keyib_sign`, `function keyda_sign`, `function keydb_sign`, `function keyg_sign`.
- 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.