Re: [PATCH v3] sysctl: Add a group of macro functions to initcall the sysctl table of each feature

From: Luis Chamberlain
Date: Sun Dec 19 2021 - 16:33:02 EST


On Mon, Dec 13, 2021 at 11:31:19AM +0800, Xiaoming Ni wrote:
> To avoid duplicated code, add a set of macro functions to initialize the
> sysctl table for each feature.
>
> The system initialization process is as follows:

See Eric's comments, we don't need to take care here on order as if the
path does not exist, it will be created. So please updates the commit to
to instead reflect that reality as I was just lazy and assumed the worst
and was just being cautious. If you get to add a few tests on
lib/test_sysctl.c and tools/testing/selftests/sysctl/sysctl.sh to
verify it would be great too.

Luis