1

I'm new at looking at the kernel code. namespaces.c (link) has this:

static __init int cgroup_namespaces_init(void)
{
    return 0;
}
subsys_initcall(cgroup_namespaces_init);

If I understood correctly, subsys_initcall will make a call to that function when Linux is loading. What is the purpose of that if cgroup_namespaces_init simply returns 0?

1 Answer 1

0

I get the impression there isn’t any; if you want to determine this with certainty, you could submit a patch to remove it.

1
  • 1
    I would love to do that! just to go through the experience of submitting a patch... weekend task :D Jul 2, 2021 at 12:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .