-
Notifications
You must be signed in to change notification settings - Fork 1.2k
linux/aarch64: make mcontext_t.__reserved pub #4823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Some changes occurred in the Android module cc @maurer |
|
Is there official documentation outside of the uapi comment saying what this field contains? The manpage I found says (link):
Given that and the fact that the field is actually named reserved, I am hesitant to expose this. If you actually need these fields and want to opt into whatever sort of instability they have, it would be better to define your own struct and transmute. |
tgross35
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(updating status)
The uapi header is the only documentation I am aware of. But uapi documents interfaces that are stable. I certainly agree that the If you search around (https://github.com/search?q=__reserved+uc_mcontext&type=code), you can find lots of C/C++ code accessing this field as documented in the uapi definitions. It should be possible to port such code to Rust without manually defining types. I suppose to really complete that promise, |
This comment was marked as outdated.
This comment was marked as outdated.
The `mcontext_t.__reserved` field is documented to contain extra context, such as FP state and the ESR register.
a6d1226 to
197ebc5
Compare
Description
The
mcontext_t.__reservedfield is documented to contain extra context, such as FP state and the ESR register.Sources
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI
@rustbot label +stable-nominated