HomeFreeBSD

openfirm: Add OF_device_unregister_xref

Description

openfirm: Add OF_device_unregister_xref

When a device fails to attach, or a module is unloaded, we want to be
able to unregister the xref as the device goes away. While the device_t
may still be valid, it won't be providing whatever functionality the
consumer that follows the xref wants it for and thus, we should not
keep it discoverable.

[Commit message re-worded by kevans@]

Reviewed by: ian, imp
Differential Revision: https://reviews.freebsd.org/D22945

Details

Provenance
manuAuthored on Thu, Apr 3, 1:54 PM
kevansCommitted on Thu, Apr 3, 2:03 PM
Reviewer
ian
Differential Revision
D22945: openfirm: Add OF_device_unregister_xref
Parents
rGef777be98543: stress2: Move files to the right directory
Branches
Unknown
Tags
Unknown