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
F82397759: D33341.diff
Sun, Apr 28, 3:50 AM
Unknown Object (File)
Feb 17 2024, 11:46 PM
Unknown Object (File)
Feb 10 2024, 10:12 AM
Unknown Object (File)
Jan 12 2024, 3:07 PM
Unknown Object (File)
Dec 22 2023, 11:04 PM
Unknown Object (File)
Oct 18 2023, 11:49 PM
Unknown Object (File)
Aug 8 2023, 4:17 AM
Unknown Object (File)
Aug 5 2023, 8:21 AM
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