sys: usermode: Document 0 size buffer memory check
Documenting that 0 size buffer has undefined behavior. See: https://github.com/zephyrproject-rtos/zephyr/pull/23239 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
8ed4b62dc0
commit
4b2fc256cf
1 changed files with 2 additions and 0 deletions
|
@ -578,6 +578,8 @@ void arch_mem_domain_destroy(struct k_mem_domain *domain);
|
|||
* if the supplied memory buffer spans multiple enabled memory management
|
||||
* regions (even if all such regions permit user access).
|
||||
*
|
||||
* @warning 0 size buffer has undefined behavior.
|
||||
*
|
||||
* @param addr start address of the buffer
|
||||
* @param size the size of the buffer
|
||||
* @param write If nonzero, additionally check if the area is writable.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue