Lines Matching refs:priority

68 #define LAYER_INITCALL(func, layer, clayer, priority)                                     \

69 static __attribute__((constructor(CTOR_VALUE_##layer + LAYER_INIT_LEVEL_##priority))) \
70 void BOOT_##layer##priority##func() {func();}
72 #define LAYER_INITCALL(func, layer, clayer, priority) \
74 __attribute__((section(".zinitcall." clayer #priority ".init"))) = func
76 // Default priority is 2, priority range is [0, 4]
81 * @brief Identifies the entry for initializing and starting a core phase by the priority 2.
84 * This macro is used to identify the entry called at the priority 2 of the core phase of
93 * priority.
96 * This macro is used to identify the entry called at the specified priority of the core phase of
101 * @param priority Indicates the calling priority when starting the core phase.
104 #define CORE_INIT_PRI(func, priority) LAYER_INITCALL(func, core, "core", priority)
108 * priority 2.
110 * This macro is used to identify the entry called at the priority 2 in the core system
119 * specified priority.
121 * This macro is used to identify the entry called at the specified priority in the core system
126 * @param priority Indicates the calling priority when starting the core system service in the
129 #define SYS_SERVICE_INIT_PRI(func, priority) LAYER_INITCALL(func, sys_service, "sys.service", priority)
133 * priority 2.
135 * This macro is used to identify the entry called at the priority 2 in the core system
144 * specified priority.
146 * This macro is used to identify the entry called at the specified priority in the core system
151 * @param priority Indicates the calling priority when starting the core system feature phase.
154 #define SYS_FEATURE_INIT_PRI(func, priority) LAYER_INITCALL(func, sys_feature, "sys.feature", priority)
158 * priority 2.
160 * This macro is used to identify the entry called at the priority 2 in the system startup
169 * specified priority.
171 * This macro is used to identify the entry called at the specified priority in the system startup
176 * @param priority Indicates the calling priority when starting the system startup phase.
179 #define SYS_RUN_PRI(func, priority) LAYER_INITCALL(func, run, "run", priority)
182 * @brief Identifies the entry for initializing and starting a system service by the priority 2.
184 * This macro is used to identify the entry called at the priority 2 in the system service
193 * priority.
195 * This macro is used to identify the entry called at the specified priority of the system service
200 * @param priority Indicates the calling priority when starting the system service phase.
203 #define SYSEX_SERVICE_INIT_PRI(func, priority) LAYER_INITCALL(func, app_service, "app.service", priority)
206 * @brief Identifies the entry for initializing and starting a system feature by the priority 2.
208 * This macro is used to identify the entry called at the priority 2 of the system feature
217 * priority.
219 * This macro is used to identify the entry called at the specified priority of the system feature
224 * @param priority Indicates the calling priority when starting the system feature phase.
227 #define SYSEX_FEATURE_INIT_PRI(func, priority) LAYER_INITCALL(func, app_feature, "app.feature", priority)
231 * priority 2.
233 * This macro is used to identify the entry called at the priority 2 of the application-layer
242 * specified priority.
244 * This macro is used to identify the entry called at the specified priority of the
249 * @param priority Indicates the calling priority when starting the application-layer service
252 #define APP_SERVICE_INIT_PRI(func, priority) LAYER_INITCALL(func, app_service, "app.service", priority)
256 * priority 2.
258 * This macro is used to identify the entry called at the priority 2 of the application-layer
267 * the specified priority.
269 * This macro is used to identify the entry called at the specified priority of the
274 * @param priority Indicates the calling priority when starting the application-layer feature.
277 #define APP_FEATURE_INIT_PRI(func, priority) LAYER_INITCALL(func, app_feature, "app.feature", priority)