-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
naming consistency for kernel object initializer macros #24645
Comments
|
@andrewboie Thanks. I thought it might be that, but was surprised that I can't statically initialize semaphores and timers without using a non-public API. |
You should be using |
Thanks for the clue; I see what happened. This all started because I wanted to statically define a
Also I'd planned to have a semaphore inside another structure, for which the Probably there should be an issue to finish the conversion of |
Rename internal macros to use Z_ prefix instead of _K.. Those macros were missed when we did the global renaming activities. Fixes zephyrproject-rtos#24645 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Rename internal macros to use Z_ prefix instead of _K.. Those macros were missed when we did the global renaming activities. Fixes #24645 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Rename internal macros to use Z_ prefix instead of _K.. Those macros were missed when we did the global renaming activities. Fixes zephyrproject-rtos#24645 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Rename internal macros to use Z_ prefix instead of _K.. Those macros were missed when we did the global renaming activities. Fixes zephyrproject-rtos#24645 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
What is the policy for naming the initializer value macro for objects defined in kernel.h?
I see the following being used:
Z_*
K_*
Z_*
_K_*
K_*
_K_*
K_*
_K_*
K_*
_K_*
K_*
_K_*
K_*
_K_*
K_*
K_*
K_*
_K_*
K_*
Z_*
K_*
_K_*
K_*
Z_*
K_*
Z_*
K_*
[*]
FUTEX_DATA
is the initialized object,FUTEX
is the kernel object.The selection between
Z_*
,_K_*
, andK_*
has no pattern I can immediately discern. This makes it difficult to figure out how to initialize a kernel object at compile-time (must go to the header and see which spelling is used for the type).The text was updated successfully, but these errors were encountered: