Page MenuHomeFreeBSD

Const poison the command interface
ClosedPublic

Authored by imp on Thu, Dec 6, 6:25 PM.

Details

Summary

Make the pointers we pass into the commands const, also make the
linker set mirrors const.

Suggested by: cem@
Sponsored by: Netflix

Test Plan

made a separate commit because it seemed needlessly churny to include it in the other one.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

imp created this revision.Thu, Dec 6, 6:25 PM
imp edited the test plan for this revision. (Show Details)Thu, Dec 6, 6:26 PM
imp added a reviewer: cem.
cem accepted this revision.Thu, Dec 6, 10:43 PM
This revision is now accepted and ready to land.Thu, Dec 6, 10:43 PM
Closed by commit rS341658: Const poison the command interface (authored by imp, committed by ). · Explain WhyThu, Dec 6, 10:59 PM
This revision was automatically updated to reflect the committed changes.