Page MenuHomeFreeBSD

hw.bus.info: rework handler
ClosedPublic

Authored by kaktus on Jun 17 2020, 2:14 PM.
Tags
None
Referenced Files
F174134709: D25321.diff
Wed, Sep 30, 8:23 PM
Unknown Object (File)
Tue, Sep 29, 5:03 PM
Unknown Object (File)
Fri, Sep 25, 5:43 PM
Unknown Object (File)
Mon, Sep 21, 12:10 PM
Unknown Object (File)
Sun, Sep 20, 7:59 AM
Unknown Object (File)
Sat, Sep 19, 1:00 PM
Unknown Object (File)
Fri, Sep 18, 4:01 PM
Unknown Object (File)
Sat, Sep 5, 7:44 PM
Subscribers

Details

Summary

hw.bus.info was added in rS68522 as a node, but there was never anything connected "behind" it. Its only purpose is to return a struct u_businfo. The only in-base consumer is devinfo(3)/devinfo(8).
Rewrite the handler as SYSCTL_PROC and mark it as MPSAFE and read-only as there never was a writable path.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I assume you checked that devinfo(8) still works.

This revision is now accepted and ready to land.Jun 18 2020, 4:08 PM
This revision was automatically updated to reflect the committed changes.