|
|
@ -210,7 +210,7 @@ Some objects will be implicitly initialized at boot: |
|
|
|
is run by the kernel early in the boot process. |
|
|
|
is run by the kernel early in the boot process. |
|
|
|
|
|
|
|
|
|
|
|
If a kernel object is initialized with a private static initializer, the object |
|
|
|
If a kernel object is initialized with a private static initializer, the object |
|
|
|
must have :c:func:`z_object_init` called on it at some point by a supervisor |
|
|
|
must have :c:func:`k_object_init` called on it at some point by a supervisor |
|
|
|
thread, otherwise the kernel will consider the object uninitialized if accessed |
|
|
|
thread, otherwise the kernel will consider the object uninitialized if accessed |
|
|
|
by a user thread. This is very uncommon, typically only for kernel objects that |
|
|
|
by a user thread. This is very uncommon, typically only for kernel objects that |
|
|
|
are embedded within some larger struct and initialized statically. |
|
|
|
are embedded within some larger struct and initialized statically. |
|
|
@ -228,7 +228,7 @@ are embedded within some larger struct and initialized statically. |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
... |
|
|
|
... |
|
|
|
z_object_init(&my_foo.sem); |
|
|
|
k_object_init(&my_foo.sem); |
|
|
|
... |
|
|
|
... |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|