Page MenuHomeFreeBSD

Add simplebus_detach()
Needs ReviewPublic

Authored by oskar.holmlund_ohdata.se on Sep 17 2020, 4:38 PM.

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
Unit Tests Skipped