Skip to content
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

linux: add kexec flags #3156

Merged
merged 1 commit into from
Mar 23, 2023
Merged

linux: add kexec flags #3156

merged 1 commit into from
Mar 23, 2023

Conversation

ribalda
Copy link
Contributor

@ribalda ribalda commented Mar 20, 2023

This adds KEXEC_ARCH_MASK, KEXEC_FILE_NO_INITRAMFS, KEXEC_FILE_ON_CRASH, KEXEC_FILE_UNLOAD, KEXEC_ON_CRASH, and KEXEC_PRESERVE_CONTEXT constants on Linux and Android.

Those are used by kexec and kexec_file_load syscalls.

@rustbot
Copy link
Collaborator

rustbot commented Mar 20, 2023

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) soon.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

This adds `KEXEC_ARCH_MASK`, `KEXEC_FILE_NO_INITRAMFS`,
`KEXEC_FILE_ON_CRASH`, `KEXEC_FILE_UNLOAD`, `KEXEC_ON_CRASH`,
and `KEXEC_PRESERVE_CONTEXT` constants on Linux and Android.

Those are used by `kexec` and `kexec_file_load` syscalls, and they are
defined at:
 * https://github.com/torvalds/linux/blob/v6.2/include/uapi/linux/kexec.h#L12-L26
@JohnTitor
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Mar 23, 2023

📌 Commit e1f4836 has been approved by JohnTitor

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Mar 23, 2023

⌛ Testing commit e1f4836 with merge ac1cb39...

@bors
Copy link
Contributor

bors commented Mar 23, 2023

☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14
Approved by: JohnTitor
Pushing ac1cb39 to master...

@bors bors merged commit ac1cb39 into rust-lang:master Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants