[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SYSCTL fails



Leon Pollak wrote:
> I did as you said - no result.
> I tried to trace the problem and noticed that line 1103 in kern_sysctl.c:
> oid = SLIST_FIRST(&sysctl__children);
> returns zero, which causes the error.
> 
> 1. Do you know what does it mean?

The node tree has not been initialised.

> 2. Although I did this in both ways, but still when is it correct to use this 
> SYSCTL - before or after the network initializing?

After. Look at rtems_glue.c:208. It calls sysctl_register_all from the 
networking task once everything else has been set up.

The sysctl node pointers are placed in special sections and this call takes 
those nodes pointers and builds the sysctl tree.

Regards
Chris