Page MenuHomeFreeBSD

Retire SI_SUB_DUMMY
Needs ReviewPublic

Authored by zlei on Wed, Dec 4, 4:32 PM.

Details

Reviewers
cperciva
jhb
imp
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 Skipped
Unit
Tests Skipped