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

test-runner: Improve uninstall_protocol_interface example #931

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

nicholasbishop
Copy link
Member

If a protocol is installed with a data pointer, you have to pass that same pointer in when uninstalling the interface. Update the test runner to demonstrate how to do this by opening the protocol and converting the ScopedProtocol to a raw pointer.

#921

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

Copy link
Contributor

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

If a protocol is installed with a data pointer, you have to pass that same
pointer in when uninstalling the interface. Update the test runner to
demonstrate how to do this by opening the protocol and converting the
ScopedProtocol to a raw pointer.
@phip1611 phip1611 added this pull request to the merge queue Nov 12, 2023
Merged via the queue into rust-osdev:main with commit bb648c9 Nov 12, 2023
12 checks passed
@nicholasbishop nicholasbishop deleted the bishop-uninstall-example branch November 12, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants