This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit c64b0644c54986919233780c84a7763847ce1b6f
Author: Marco Casaroli <[email protected]>
AuthorDate: Tue Oct 20 21:00:15 2026 +0200

    Documentation: Describe the EINVAL of pthread_attr_setstacksize().
    
    List the errors of pthread_attr_setstacksize(), including the stack
    size limit of CONFIG_TLS_ALIGNED.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 Documentation/reference/user/08_pthread.rst | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/reference/user/08_pthread.rst 
b/Documentation/reference/user/08_pthread.rst
index b7c3d257362..b359cf24ae5 100644
--- a/Documentation/reference/user/08_pthread.rst
+++ b/Documentation/reference/user/08_pthread.rst
@@ -299,7 +299,10 @@ No support for the following pthread interfaces is 
provided by NuttX:
   zero (``OK``). Otherwise, an error number will be returned to indicate
   the error:
 
-  -  ``To be provided``.
+  -  ``EINVAL``. ``stacksize`` is less than ``PTHREAD_STACK_MIN``, or,
+     with ``CONFIG_TLS_ALIGNED``, more than
+     ``2^CONFIG_TLS_LOG2_MAXSTACK`` bytes.  ``pthread_attr_setstack()``
+     and ``pthread_create()`` give the same error for such a size.
 
   **Assumptions/Limitations:**
 

Reply via email to