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, Oct 3, 6:29 PM
Unknown Object (File)
Sat, Oct 3, 5:38 PM
Unknown Object (File)
Thu, Oct 1, 11:15 AM
Unknown Object (File)
Thu, Oct 1, 1:35 AM
Unknown Object (File)
Thu, Sep 24, 10:41 PM
Unknown Object (File)
Sep 2 2026, 5:26 PM
Unknown Object (File)
Aug 11 2026, 6:41 PM
Unknown Object (File)
Aug 8 2026, 6:00 PM
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