zephyr/drivers/flash
Andrew Boie 8345e5ebf0 syscalls: remove policy from handler checks
The various macros to do checks in system call handlers all
implictly would generate a kernel oops if a check failed.
This is undesirable for a few reasons:

* System call handlers that acquire resources in the handler
  have no good recourse for cleanup if a check fails.
* In some cases we may want to propagate a return value back
  to the caller instead of just killing the calling thread,
  even though the base API doesn't do these checks.

These macros now all return a value, if nonzero is returned
the check failed. K_OOPS() now wraps these calls to generate
a kernel oops.

At the moment, the policy for all APIs has not changed. They
still all oops upon a failed check/

The macros now use the Z_ notation for private APIs.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2018-05-17 23:34:03 +03:00
..
CMakeLists.txt drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver files. 2018-05-15 17:48:18 +03:00
Kconfig drivers/flash: Switch W25QXXDV driver to new SPI API 2018-04-04 19:02:35 +02:00
Kconfig.sam0 subsys: storage: flash_map: enable only if any flash driver is enable 2018-03-08 10:18:57 +01:00
Kconfig.stm32 subsys: storage: flash_map: enable only if any flash driver is enable 2018-03-08 10:18:57 +01:00
flash_handlers.c syscalls: remove policy from handler checks 2018-05-17 23:34:03 +03:00
flash_page_layout.c drivers: flash: add system calls 2017-10-30 13:20:19 -07:00
flash_priv.h drivers: flash: Assert implementation of Flash Page Layout 2017-12-12 14:23:50 -06:00
flash_sam0.c drivers: flash: atmel sam0: Fix compilation without page layout support 2018-04-12 17:26:54 -05:00
flash_stm32.c drivers: flash: stm32: Convert to use device tree 2018-01-26 09:25:57 -06:00
flash_stm32.h flash: stm32: add support for STM32F0 flash controller 2017-12-12 12:36:08 -06:00
flash_stm32f0x.c drivers: flash: stm32f0: remove CONFIG_FLASH_PAGE_SIZE 2018-03-18 17:02:53 -04:00
flash_stm32f3x.c drivers: flash: stm32: Convert to use device tree 2018-01-26 09:25:57 -06:00
flash_stm32f3x.h drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
flash_stm32f3x_priv.c drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
flash_stm32f4x.c cleanup: Use quote include instead of system include 2017-10-28 07:11:53 -04:00
flash_stm32l4x.c flash: stm32l4x: fix build 2017-12-04 10:53:12 -06:00
soc_flash_mcux.c newlib: Fix compiler warning when using Newlib 2018-04-11 16:57:12 +03:00
soc_flash_nios2_qspi.c drivers: flash: Fix Nios-II QSPI flash Coverity issue 2018-03-06 10:36:39 -08:00
soc_flash_nrf.c drivers: flash: nrf: Rename nrf5 to nrf 2018-03-20 20:07:09 +01:00
soc_flash_qmsi.c drivers: flash: Assert implementation of Flash Page Layout 2017-12-12 14:23:50 -06:00
spi_flash_w25qxxdv.c drivers/flash: Switch W25QXXDV driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_flash_w25qxxdv.h drivers/flash: Switch W25QXXDV driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_flash_w25qxxdv_defs.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00