lkml.org 
[lkml]   [2021]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sysctl: Add a group of macro functions to initcall the sysctl table of each feature
On Mon, Dec 13, 2021 at 10:04:48AM -0600, Eric W. Biederman wrote:
> If you look at __register_sysctl_table the core registration function
> you will see that all directory entries get reduced to simply a path
> component. So they have nothing but their names as input into
> the sysctl subsystem.
>
> Further __register_sysctl_table goes in a loop through the path
> and does get_subdir to find or create the directory.
>
> Which means that if two places were to register sysctls in
> the "fs" directory they would both use the safe "fs" directory
> and whoever can first would create it.
>
> Which should mean that worrying about ordering is completely
> unnecessary.
>
> What am I missing?

I was being too cautious, sorry for not having dug enough.
Then this makes things much easier. Thanks!

Luis

\
 
 \ /
  Last update: 2021-12-13 22:30    [W:0.071 / U:2.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site