]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Rename "driver" to "target" in preparation for two-phase veto mechanism
authorMichael Brown <mcb30@ipxe.org>
Tue, 27 Jun 2023 13:48:12 +0000 (14:48 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 27 Jun 2023 13:49:41 +0000 (14:49 +0100)
commit570134c7ba01990d92cfeb98058dbf699c0a69ff
tree09fc872ed4baee60582b6d3c21aeb9e21650e1c0
parenta029f4e13b54cfe87a04af7209a0d9744f3b7613
[efi] Rename "driver" to "target" in preparation for two-phase veto mechanism

Forcible uninstallation of handles installed by a vetoed driver can be
done only on the basis of an image handle, since there is no way
within the UEFI driver model to identify the driver that installed a
protocol on a handle.  A single image may provide multiple drivers.

This will require a two-phase mechanism in which we first perform the
DisconnectController() calls, uninstall the driver binding protocols,
and close any stray handles associated with the driver handle.  Once
all driver binding handles have been processed in this way, a second
pass can close and uninstall any stray handles associated with the
image handle.

Prepare for a two-phase veto mechanism by renaming the "driver" handle
to a "target" handle (which may be either the driver handle or the
image handle).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_veto.c