Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

posix: implement sched_rr_get_interval() #66961

Closed
Tracked by #51211
ycsin opened this issue Dec 24, 2023 · 2 comments · Fixed by #68316
Closed
Tracked by #51211

posix: implement sched_rr_get_interval() #66961

ycsin opened this issue Dec 24, 2023 · 2 comments · Fixed by #68316
Assignees
Labels
area: POSIX POSIX API Library Enhancement Changes/Updates/Additions to existing features Good first issue Good for a first time contributor to take

Comments

@ycsin
Copy link
Member

ycsin commented Dec 24, 2023

This is part of the See POSIX Roadmap for LTSv3 (RFC #51211).

sched_rr_get_interval() is required as part of _POSIX_PRIORITY_SCHEDULING Option Group.

For more information, please refer to https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_rr_get_interval.html

@ycsin ycsin added Feature Request A request for a new feature Good first issue Good for a first time contributor to take area: POSIX POSIX API Library labels Dec 24, 2023
@nashif nashif added Enhancement Changes/Updates/Additions to existing features and removed Feature Request A request for a new feature labels Jan 19, 2024
@moonlight83340
Copy link
Contributor

The sched_rr_get_interval() function shall update the timespec structure referenced by the interval argument to contain the current execution time limit (that is, time quantum) for the process specified by pid. If pid is zero, the current execution time limit for the calling process shall be returned.

Currently Zephyr has no concept of processes or process identifiers (PIDs) ?
Where should I start if I want to take a look at it ?

@cfriedt
Copy link
Member

cfriedt commented Jan 30, 2024

The sched_rr_get_interval() function shall update the timespec structure referenced by the interval argument to contain the current execution time limit (that is, time quantum) for the process specified by pid. If pid is zero, the current execution time limit for the calling process shall be returned.

Currently Zephyr has no concept of processes or process identifiers (PIDs) ? Where should I start if I want to take a look at it ?

@moonlight83340 - I think due to the above, it would be another case of ENOSYS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: POSIX POSIX API Library Enhancement Changes/Updates/Additions to existing features Good first issue Good for a first time contributor to take
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants