diff options
author | Mark Brown <broonie@kernel.org> | 2022-10-31 22:24:50 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-11-14 18:08:15 +0300 |
commit | 9e75e74b07ab17e6407b567eb4a8b3d0c93de5f1 (patch) | |
tree | e1fa9d8e25c41ade3d2e8bf437263dd838cc8850 /arch | |
parent | 657eef0a5420a02c02945ed8c87f2ddcbd255772 (diff) | |
download | linux-9e75e74b07ab17e6407b567eb4a8b3d0c93de5f1.tar.xz |
arm64/signal: Document our convention for choosing magic numbers
Szabolcs Nagy has pointed out that most of our signal frame magic numbers
are chosen to be meaningful ASCII when dumped to aid manual parsing. This
seems sensible since it might help someone parsing things out, let's
document it so people implementing new signal contexts are aware of it and
are more likely to follow it.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221031192450.826159-1-broonie@kernel.org
[will: Fixed typo and tweaked wording]
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/include/uapi/asm/sigcontext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/include/uapi/asm/sigcontext.h b/arch/arm64/include/uapi/asm/sigcontext.h index 4aaf31e3bf16..9525041e4a14 100644 --- a/arch/arm64/include/uapi/asm/sigcontext.h +++ b/arch/arm64/include/uapi/asm/sigcontext.h @@ -62,6 +62,10 @@ struct sigcontext { * context. Such structures must be placed after the rt_sigframe on the stack * and be 16-byte aligned. The last structure must be a dummy one with the * magic and size set to 0. + * + * Note that the values allocated for use as magic should be chosen to + * be meaningful in ASCII to aid manual parsing, ZA doesn't follow this + * convention due to oversight but it should be observed for future additions. */ struct _aarch64_ctx { __u32 magic; |