Skip to content

Conversation

@anjiahao1
Copy link
Contributor

Summary

  • Add two new POSIX spawn attribute helper APIs: posix_spawnattr_getpriority() and posix_spawnattr_setpriority().
  • This enables callers to read/write the priority field in posix_spawnattr_t through a stable interface.
  • Scope of change is limited to libs/libc/spawn/ and build system integration (CMakeLists.txt / Make.defs).
  • Related NuttX Issue reference if applicable: N/A.
  • Related NuttX Apps Issue / Pull Request reference if applicable: N/A.

Impact

  • Is new feature added? Is existing feature changed? NO / YES (please describe if yes).
    • YES: Adds two new public libc/spawn APIs (additive change).
  • Impact on user (will user need to adapt to change)? NO / YES (please describe if yes).
    • NO.
  • Impact on build (will build process change)? NO / YES (please describe if yes).
    • YES: New source files are added to libc/spawn build inputs.
  • Impact on hardware (will arch(s) / board(s) / driver(s) change)? NO / YES (please describe if yes).
    • NO.
  • Impact on documentation (is update required / provided)? NO / YES (please describe if yes).
    • NO.
  • Impact on security (any sort of implications)? NO / YES (please describe if yes).
    • NO.
  • Impact on compatibility (backward/forward/interoperability)? NO / YES (please describe if yes).
    • NO: API-only addition.
  • Anything else to consider or add?
    • N/A.

Testing

I confirm that changes are verified on local setup and works as intended:

  • Build Host(s): N/A (not tested; API-only addition).
  • Target(s): N/A.
  • Command(s): N/A.

Testing logs before change:

N/A (baseline log not captured)

Testing logs after change:

N/A (not tested)

PR verification Self-Check

  • This PR introduces only one functional change.
  • I have updated all required description fields above.
  • My PR adheres to Contributing Guidelines and Documentation (git commit title and message, coding standard, etc).
  • My PR is still work in progress (not ready for review).
  • My PR is ready for review and can be safely merged into a codebase.

support get/set priority

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
@github-actions github-actions bot added Area: OS Components OS Components issues Size: M The size of the change in this PR is medium labels Jan 21, 2026
Copy link
Contributor

@acassis acassis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jerpelea jerpelea changed the title libc/spawn:support get/set priority libc/spawn: support get/set priority Jan 22, 2026
Copy link
Contributor

@acassis acassis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: OS Components OS Components issues Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants