nightt5879 opened a new pull request, #3539: URL: https://github.com/apache/nuttx-apps/pull/3539
## Summary - Replace the thttpd tasks CGI use of `nxsched_foreach()` with procfs-based task enumeration. - Parse `/proc/<pid>/status` for task name, type, state, priority, and scheduler policy. - Keep the tasks page generated through standard file APIs instead of scheduler internals. ## Why The thttpd example was reading task data through NuttX scheduler internals (`struct tcb_s` via `nxsched_foreach()`), which violates the application/kernel interface boundary. procfs already exposes the same task information through a standard file interface. Fixes #245. ## Testing - `git diff --check` - `gcc -x c -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter -fsyntax-only ... examples/thttpd/content/tasks/tasks.c` with a temporary local NuttX config/arch shim for syntax checking Full board build was not run because this local checkout does not currently have a configured NuttX `.config`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
