Page MenuHomeFreeBSD

Use device_delete_children instead of explicit calls to device_delete_child
ClosedPublic

Authored by jhb on Dec 6 2024, 10:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 4:36 PM
Unknown Object (File)
Sun, Jan 5, 11:59 PM
Unknown Object (File)
Sat, Jan 4, 5:21 PM
Unknown Object (File)
Fri, Jan 3, 11:47 AM
Unknown Object (File)
Fri, Jan 3, 12:31 AM
Unknown Object (File)
Thu, Jan 2, 1:48 AM
Unknown Object (File)
Dec 26 2024, 3:29 AM
Unknown Object (File)
Dec 25 2024, 4:40 PM
Subscribers

Details

Summary

This is simpler and more robust in the face of potential double-frees
(e.g. if called after bus_generic_detach which will delete devices in
a future commit).

Diff Detail

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