Skip to content

Rethink (im)mutabiltiy of device paths (DevicePathBuilder / install_protocol_interface) #970

@phip1611

Description

@phip1611

DevicePathBuilder::finalize() returns a &DevicePath. If one wants to install this to a handle using install_protocol_interface, one has to cast that to a *mut c_void. It feels unhandy to change the mutability here.

Also, I'm not sure if install_protocol_interface could just consume a *const`. In the spec, I don't find something that says that this needs to be mutable:

https://uefi.org/specs/UEFI/2.10/07_Services_Boot_Services.html?highlight=install_protocol_interface

Code that uses this functionality can be found here: nix-community/lanzaboote#194

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions