nuttx/libs/libc/spawn
anjiahao 745a6e53a4 spawn: allow zero stacksize/priority to use binary loader defaults
posix_spawnattr_init() no longer pre-fills attr->stacksize and
attr->priority (it leaves them zero, as memset already does).  When a
caller does not set them, the binary loader supplies them from the
loaded ELF (binp->stacksize / binp->priority, parsed from the nx_*
symbols), and nxtask_spawn_exec() falls back to the parent priority and
CONFIG_POSIX_SPAWN_DEFAULT_STACKSIZE for the posix_spawn() function-task
path.

This lets an application's stack size and priority embedded as ELF
symbols actually drive the spawned task, instead of being overridden by
the spawnattr defaults.

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-07-15 12:24:44 -03:00
..
CMakeLists.txt cmake:add lib_psa_set/getstackaddr file to CMakeLists.txt 2026-02-03 14:40:00 +01:00
lib_psa_destroy.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_dump.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
lib_psa_getflags.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_getpriority.c libc/spawn:support get/set priority 2026-01-26 21:01:01 +08:00
lib_psa_getschedparam.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_getschedpolicy.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_getsigmask.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_getstackaddr.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_getstacksize.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_init.c spawn: allow zero stacksize/priority to use binary loader defaults 2026-07-15 12:24:44 -03:00
lib_psa_setflags.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_setpriority.c libc/spawn:support get/set priority 2026-01-26 21:01:01 +08:00
lib_psa_setschedparam.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_setschedpolicy.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_setsigmask.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_setstackaddr.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psa_setstacksize.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psfa_addaction.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psfa_addclose.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psfa_adddup2.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psfa_addopen.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psfa_destroy.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_psfa_dump.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
lib_psfa_init.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Make.defs libc/spawn:support get/set priority 2026-01-26 21:01:01 +08:00