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
F98258258: D33341.diff
Wed, Oct 2, 8:32 PM
Unknown Object (File)
Wed, Sep 18, 4:58 PM
Unknown Object (File)
Wed, Sep 18, 4:52 PM
Unknown Object (File)
Wed, Sep 18, 9:59 AM
Unknown Object (File)
Tue, Sep 17, 12:02 PM
Unknown Object (File)
Tue, Sep 17, 7:29 AM
Unknown Object (File)
Tue, Sep 17, 4:44 AM
Unknown Object (File)
Mon, Sep 16, 7:42 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable