zephyr/tests/drivers
Andrew Boie 65a9d2a94a kernel: make K_.*_INITIALIZER private to kernel
Upcoming memory protection features will be placing some additional
constraints on kernel objects:

- They need to reside in memory owned by the kernel and not the
application
- Certain kernel object validation schemes will require some run-time
initialization of all kernel objects before they can be used.

Per Ben these initializer macros were never intended to be public. It is
not forbidden to use them, but doing so requires care: the memory being
initialized must reside in kernel space, and extra runtime
initialization steps may need to be peformed before they are fully
usable as kernel objects. In particular, kernel subsystems or drivers
whose objects are already in kernel memory may still need to use these
macros if they define kernel objects as members of a larger data
structure.

It is intended that application developers instead use the
K_<object>_DEFINE macros, which will automatically put the object in the
right memory and add them to a section which can be iterated over at
boot to complete initiailization.

There was no K_WORK_DEFINE() macro for creating struct k_work objects,
this is now added.

k_poll_event and k_poll_signal are intended to be instatiated from
application memory and have not been changed.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-07-10 11:44:56 -07:00
..
adc tests: samples: remove duplicate filtering 2017-06-27 17:44:23 -04:00
aio/aio_basic_api tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
aon_counter/aon_api tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
build_all ethernet: fix Kconfig option for ETHERNET 2017-07-05 12:43:13 -04:00
dma tests: samples: remove duplicate filtering 2017-06-27 17:44:23 -04:00
enc28j60 ethernet: fix Kconfig option for ETHERNET 2017-07-05 12:43:13 -04:00
gpio/gpio_basic_api tests: samples: remove duplicate filtering 2017-06-27 17:44:23 -04:00
i2c/i2c_api i2c: remove I2C Slave Read config 2017-07-07 10:01:38 -05:00
ipm tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
nsim_uart tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
pci_enum tests: fix PCI test using 'supported' keyword 2017-06-28 09:51:40 -05:00
pinmux/pinmux_basic_api tests: samples: remove duplicate filtering 2017-06-27 17:44:23 -04:00
pwm/pwm_api tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
quark_clock tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
rtc/rtc_basic_api tests: samples: remove duplicate filtering 2017-06-27 17:44:23 -04:00
spi kernel: make K_.*_INITIALIZER private to kernel 2017-07-10 11:44:56 -07:00
uart/uart_basic_api tests: Remove camel case and fix coding style 2017-06-29 07:00:50 -04:00
watchdog/wdt_basic_api tests: samples: remove duplicate filtering 2017-06-27 17:44:23 -04:00