Device Path Construction: Further improve tooling and guidance

Open
#1,817 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust

Research direction

Start by reading #1799 and #1806, then inspect DevicePathBuilder, DevicePathBuilder::push, DevicePath::append_node(), and the planned DevicePathBuilderOwner. Determine the recommended interoperability and ownership model, including whether push_nodes should be added and when to use Box versus PoolDevicePath. Done means the API and guidance are streamlined and the recommended usage is documented.

Written by the indexing model from the issue text.

Description

maybe-next-release

#1799 was already a step into the right direction. But as we have

  • DevicePathBuilder using an external buffer
  • DevicePathBuilder::push only accepting single build nodes
  • DevicePath::append_node() suddenly returning an allocated device path
  • (soon) DevicePathBuilderOwner (#1806)

we should streamline the interop, the documentation and also figure out what the recommended way is. For example:

  • DevicePathBuilder should probably also have some kind of ::push_nodes(dv: &DevicePath)
  • We should clarify when we use Box<DevicePath> and when PoolDevicePath
Dominant language
Rust
Stars
1.7k
Forks
205
Avg merge
1d 20h
Merged PRs (30d)
15

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-osdev/uefi-rs

All issues in rust-osdev/uefi-rs

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.