Page MenuHomeFreeBSD

ipmi: Use devclass_find to lookup ipmi devclass in ipmi_unload.
ClosedPublic

Authored by jhb on Apr 26 2022, 12:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 27, 4:07 PM
Unknown Object (File)
Fri, Jun 26, 10:12 AM
Unknown Object (File)
Wed, Jun 24, 2:57 AM
Unknown Object (File)
Mon, Jun 22, 3:09 AM
Unknown Object (File)
Thu, Jun 18, 8:43 PM
Unknown Object (File)
Mon, Jun 8, 11:23 PM
Unknown Object (File)
May 18 2026, 9:06 AM
Unknown Object (File)
May 18 2026, 9:02 AM
Subscribers
None

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Apr 26 2022, 12:10 AM
jhb created this revision.
sys/dev/ipmi/ipmi.c
1073

BTW, this pattern of deleting devices created via BUS_ADD_CHILD in identify routines when unloading a driver that created the devices is not uncommon (there are about 4 or 5 drivers that do it). I wonder if we want to create a helper (devclass_delete_devices or the like) that drivers can use?

This revision was not accepted when it landed; it landed in state Needs Review.May 5 2022, 11:43 PM
This revision was automatically updated to reflect the committed changes.