|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
Macros for declaring and defining dedicated workqueues. More...
Go to the source code of this file.
Macros | |
| #define | K_DEDICATED_WORK_QUEUE_DECLARE(_prefix, _module) |
| Declare workqueue helper functions for a subsystem. | |
| #define | K_DEDICATED_WORK_QUEUE_DEFINE(_prefix, _module) |
| Define a dedicated workqueue and helper functions for a subsystem. | |
Macros for declaring and defining dedicated workqueues.
| #define K_DEDICATED_WORK_QUEUE_DECLARE | ( | _prefix, | |
| _module ) |
Declare workqueue helper functions for a subsystem.
Declares <_prefix>_work_submit(), <_prefix>_work_schedule(), and <_prefix>_work_reschedule(). When CONFIG_<_module>_DEDICATED_WORKQUEUE is enabled, these are declared as external functions backed by a dedicated workqueue; otherwise they are defined as static inline wrappers around the system workqueue functions.
| _prefix | Lowercase subsystem prefix used for function names. |
| _module | Uppercase module prefix matching the Kconfig option CONFIG_<_module>_DEDICATED_WORKQUEUE. |
| #define K_DEDICATED_WORK_QUEUE_DEFINE | ( | _prefix, | |
| _module ) |
Define a dedicated workqueue and helper functions for a subsystem.
When CONFIG_<_module>_DEDICATED_WORKQUEUE is enabled, defines the static workqueue object, kernel stack sized by CONFIG_<_module>_DEDICATED_WORKQUEUE_STACK_SIZE, POST_KERNEL startup initialization at priority CONFIG_<_module>_DEDICATED_WORKQUEUE_PRIORITY, and the <_prefix>_work_submit(), <_prefix>_work_schedule(), and <_prefix>_work_reschedule() functions. Expands to nothing when CONFIG_<_module>_DEDICATED_WORKQUEUE is disabled.
| _prefix | Lowercase subsystem prefix used for function and thread names. |
| _module | Uppercase module prefix matching the Kconfig options CONFIG_<_module>_DEDICATED_WORKQUEUE*. |