Page MenuHomeFreeBSD

new-bus: Remove the 'rid' and 'type' arguments from BUS_*ACTIVATE_RESOURCE
ClosedPublic

Authored by jhb on Feb 27 2024, 7:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 3, 7:02 AM
Unknown Object (File)
Sat, Jun 27, 12:02 PM
Unknown Object (File)
Wed, Jun 24, 11:38 PM
Unknown Object (File)
Wed, Jun 24, 9:50 AM
Unknown Object (File)
Mon, Jun 22, 5:37 PM
Unknown Object (File)
Sat, Jun 20, 7:35 AM
Unknown Object (File)
May 14 2026, 6:39 PM
Unknown Object (File)
May 14 2026, 6:38 PM

Details

Summary

The public bus_activate/deactivate_resource() API still accepts both
forms, but the internal kobj methods no longer pass the arguments.
Implementations which need the rid or type now use rman_get_rid() or
rman_get_type() to fetch the value from the allocated resource.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 56303
Build 53191: arc lint + arc unit