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)
Wed, Nov 20, 4:27 AM
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
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable