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)
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
Unknown Object (File)
Aug 5 2023, 7:32 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