Go to file
Allan Stephens 2275cae089 kernel: Remove unneeded ASSERT from memory pool subsystem
Eliminates assert check that complains about an attempt to allocate
a memory pool block larger than the largest possible block size.
In such cases the allocation code now just returns a NULL pointer
indicating that it was unable to allocate the requested block, just
as it does when a block smaller than the maximum size cannot be
allocated because none is currently available.

Note: One scenario in which it isn't unreasonable for an application
writer to request a block that is too big is the case where a receiving
task using a mailbox first receives an excessively large message without
its data and then tries to retrieve the data into a memory pool block
allocated by the mailbox. Rather than forcing the application writer
to check to see if the size of the received message is too big for the
memory pool, or adding code to the mailbox subsystem to do such a check,
it's easier to pass on the request to the memory pool and simply have it
return NULL, which causes the mailbox to report that data retrieval
failed. The application can then perform a single check that catches
both the case where the memory pool simply ran out of blocks and the case
where it didn't have any block big enough to handle the message.

Change-Id: Ifd2cdd8a5927b93d3e9c5df301544e522131d2c6
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-07-26 04:53:07 +00:00
.known-issues build: Update Bluetooth known_issues whitelist 2016-07-13 07:39:35 +00:00
arch power_mgmt: Create arch/soc specific helper functions 2016-07-21 11:25:31 -07:00
boards nios2: optionally print cause code reason 2016-07-18 19:26:37 +00:00
doc doc: fix backslash paths in windows and python default location 2016-07-22 22:37:49 +00:00
drivers qmsi: gpio: Use locking mechanism to guard critical regions. 2016-07-22 23:26:34 +00:00
ext ksdk: Fix ARRAY_SIZE conflict 2016-07-22 15:47:58 +00:00
include Bluetooth: L2CAP: Add BR/EDR CoC channel disconnect 2016-07-25 14:24:04 +00:00
kernel kernel: Remove unneeded ASSERT from memory pool subsystem 2016-07-26 04:53:07 +00:00
lib libc: Add assert.h to minimal libc 2016-07-21 02:09:44 +00:00
misc
net net: buf: Fix compiling with debug options 2016-07-25 14:24:39 +00:00
samples testcases: add automation markup to samples/ 2016-07-26 08:32:24 +08:00
scripts scripts: Check all CONFIG_* in the code are defined into a Kconfig file 2016-07-22 23:27:08 +00:00
tests testcases: introduce defaults to build/deploy/evaluate 2016-07-23 18:31:18 +00:00
usb usb: cdc acm: Change Bulk Out handler to read data per 32-bit words 2016-07-08 18:22:19 +00:00
.checkpatch.conf
.gitattributes
.gitignore
.gitreview
.mailmap
defaults.tc testcases: introduce defaults to build/deploy/evaluate 2016-07-23 18:31:18 +00:00
Kbuild build: Make sure sysgen related header files get updated 2016-07-18 18:46:31 +00:00
Kconfig
Kconfig.zephyr usb: Add USB device core layer 2016-06-30 17:51:56 +00:00
LICENSE
MAINTAINERS MAINTAINERS: add INTERRUPTS section 2016-07-22 23:40:38 +00:00
Makefile build: use -Og instead of -O0 for CONFIG_DEBUG 2016-07-25 18:09:14 +00:00
Makefile.inc build: Fix application object files placement when building out of tree 2016-06-30 16:49:40 +00:00
zephyr-env.sh