Skip to content

Conversation

@Virv12
Copy link
Contributor

@Virv12 Virv12 commented Dec 3, 2025

Implementation of the Block I/O 2 Protocol

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
Member

@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.

Thanks for your contribution! I un-checked Sensible git history tho ;)

Your PR should have two commits:

  • uefi-raw: add BlockIo2 protocol
  • uefi: add BlockIo2 protocol wrapper

@Virv12
Copy link
Contributor Author

Virv12 commented Dec 3, 2025

Thanks for the review, I updated the commits as you requested.

@Virv12 Virv12 requested a review from phip1611 December 5, 2025 19:02
&mut self,
media_id: u32,
lba: Lba,
token: Option<NonNull<BlockIO2Token>>,
Copy link
Member

Choose a reason for hiding this comment

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

to me the Option<NonNull<T>> looks a little weird and not very idiomatic. However, it is used in lots of places of the code base, so its fine with me.

phip1611

This comment was marked as outdated.

Copy link
Member

@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.

Great contribution, thank you!

@phip1611 phip1611 added this pull request to the merge queue Dec 6, 2025
Merged via the queue into rust-osdev:main with commit 8ba5b7e Dec 6, 2025
16 checks passed
@Virv12 Virv12 deleted the blockio2 branch December 6, 2025 22:12
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