nuttx/libs/libc/sched
hujun5 5f92db54a6 sched: fix regression from PR #18040 by adding NULL pointer safety
Replace DEBUGASSERT checks with proper NULL pointer validation in getpid() and
task_get_info() functions. Return IDLE_PROCESS_ID or -ESRCH on NULL conditions
instead of asserting, improving robustness during early system startup and error conditions.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-01-23 16:59:55 +08:00
..
clock_getcpuclockid.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
CMakeLists.txt sched: move process ID from kernel to TLS for faster access 2026-01-20 22:33:45 +08:00
Make.defs sched: move process ID from kernel to TLS for faster access 2026-01-20 22:33:45 +08:00
sched_backtrace.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_cpucount.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_dumpstack.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_getprioritymax.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_getprioritymin.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_cancelpt.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
task_getpid.c sched: fix regression from PR #18040 by adding NULL pointer safety 2026-01-23 16:59:55 +08:00
task_gettid.c sched/gettid: Move thread ID to TLS 2025-04-08 22:53:10 +08:00
task_setcancelstate.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_setcanceltype.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_startup.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_testcancel.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00