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
F142636361: D35061.id105417.diff
Wed, Jan 21, 5:38 PM
F142617333: D35061.id105417.diff
Wed, Jan 21, 1:19 PM
Unknown Object (File)
Wed, Dec 31, 5:17 PM
Unknown Object (File)
Sun, Dec 28, 9:04 AM
Unknown Object (File)
Nov 30 2025, 6:32 AM
Unknown Object (File)
Nov 24 2025, 8:49 PM
Unknown Object (File)
Nov 24 2025, 8:49 PM
Unknown Object (File)
Nov 24 2025, 8:49 PM
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.