Page MenuHomeFreeBSD

Retire SI_SUB_DUMMY
ClosedPublic

Authored by zlei on Dec 4 2024, 4:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 4:02 AM
Unknown Object (File)
Mon, Sep 15, 7:49 AM
Unknown Object (File)
Sep 9 2025, 9:17 PM
Unknown Object (File)
Sep 9 2025, 5:24 PM
Unknown Object (File)
Sep 6 2025, 3:28 AM
Unknown Object (File)
Aug 14 2025, 1:02 AM
Unknown Object (File)
Aug 12 2025, 5:43 PM
Unknown Object (File)
Aug 8 2025, 1:43 AM
Subscribers

Details

Summary

It make no sense to have a kernel which do not have any SYSINIT entries
or contains only one placeholder entry but not to be executed. It is
unlikely that we will allow such kind of setup in future.

As for kernel modules, at least one sysinit entry is declared with
DECLARE_MODULE[_XXX]. Also linker_file_lookup_set() is invoked to
get sys[un]init_set prior to run sys[un]init tasks, so no harm when
trying to load a invalid module which has no / an empty sys[un]init_set.

Retire SI_SUB_DUMMY now to make the logic simpler and easier to maintain.

MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

zlei requested review of this revision.Dec 4 2024, 4:32 PM
This revision was not accepted when it landed; it landed in state Needs Review.Sep 3 2025, 5:10 PM
This revision was automatically updated to reflect the committed changes.

The non-KBI-breaking part is committed. Postpone removal of the SI_SUB_DUMMY to 16.