Page MenuHomeFreeBSD

Add simplebus_detach()
Needs ReviewPublic

Authored by oskar.holmlund_ohdata.se on Sep 17 2020, 4:38 PM.
Tags
Referenced Files
Unknown Object (File)
Sat, Apr 4, 4:28 AM
Unknown Object (File)
Thu, Apr 2, 11:47 PM
Unknown Object (File)
Wed, Apr 1, 8:18 PM
Unknown Object (File)
Wed, Apr 1, 1:57 AM
Unknown Object (File)
Mon, Mar 30, 9:30 AM
Unknown Object (File)
Mon, Mar 30, 1:35 AM
Unknown Object (File)
Mar 24 2026, 12:06 PM
Unknown Object (File)
Mar 20 2026, 9:16 AM
Subscribers

Details

Reviewers
mmel
manu
Summary

To add simplebus to syscon_generic.c ( D26402 ) a detach function are needed.

A problem with this code is if another driver creates the memory for the simplebus_devinfo structure and calls simplebus_add_device() the detach function will free the memory.
any suggestions?

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped