-
-
Notifications
You must be signed in to change notification settings - Fork 169
uefi: Add safe protocol wrapper for EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL #1594
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
Conversation
b03f112
to
29bf512
Compare
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.
LGTM, thanks for the high-quality contribution! As this is a bigger change and non trivial to review, I'd also like to wait for the feedback of Nicholas. So it may take some time (days-weeks) before we can get this merged.
9a8c777
to
6ad7495
Compare
d312695
to
38ea988
Compare
I just:
|
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.
LGTM, thanks for your patience! I'm not very experienced with NVMe but these abstractions look good. A clear value-add to this crate
Update Latest API discussions
Implemented a safe API wrapper for
EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL
[52c78312-8edc-4233-98f2-1a1aa5e388a5
].Added an integration-test for it.
+This contains a copy of theAlignedBuffer
commit from #1589This uses the iterator/mutable design I suggested here: #1589 (comment) where the iter method only captures the protocol (
NvmePassThru
) immutably, but requires you to use the produced element (NvmeNamespace
) in a mutable way for meaningful methods likeexecute_command
.Checklist