Page MenuHomeFreeBSD

intrng: Use less confusing return value for intr_pic_add_handler
ClosedPublic

Authored by jrtc27 on Dec 8 2021, 8:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 3:59 PM
Unknown Object (File)
Oct 12 2024, 1:27 PM
Unknown Object (File)
Oct 2 2024, 10:26 PM
Unknown Object (File)
Oct 2 2024, 8:32 PM
Unknown Object (File)
Sep 18 2024, 4:58 PM
Unknown Object (File)
Sep 18 2024, 4:52 PM
Unknown Object (File)
Sep 18 2024, 9:59 AM
Unknown Object (File)
Sep 17 2024, 12:02 PM
Subscribers

Details

Summary

Currently intr_pic_add_handler either returns the PIC you gave it (which
is useless and risks causing confusion about whether it's creating
another PIC) or, on error, NULL. Instead, convert it to return an int
error code as one would expect.

Note that the only consumer of this API, arm64's gicv3_its, does not use
the return value, so no uses need updating to work with the revised API.

MFC after: 1 week

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43243
Build 40131: arc lint + arc unit