-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
Add SCHED_DEADLINE
and SCHED_NORMAL
constants to os
module
#127688
Comments
os
moduleSCHED_DEADLINE
and SCHED_NORMAL
constants to os
module
I don't have |
Can you try running the following code?
In pyrepl
ref: Edit etc. That was actually my mistake, we should have imported |
Looking around, it seems like the kernel headers in
I didn't find any official source saying it's OK to include |
What I mean is, yes.
Typically, GCC searches using the following paths, assuming you haven’t changed them. Additionally, linux/*.h files are divided into kernel-space and user-space headers. Only when compiling a kernel module will it link to the kernel header files.
https://github.com/torvalds/linux/blob/f44d154d6e3d633d4c49a5d6aed8a0e4684ae25e/include/uapi/linux/sched.h#L114 Edit This may not be convincing as they are not exactly similar, but we import multiple
|
OK. |
… `os` module (pythonGH-127689)
… `os` module (pythonGH-127689)
Feature or enhancement
Proposal:
This issue suggests adding new os constants.
os.SCHED_DEADLINE
SCHED_NORMAL
is the same asSCHED_OTHER
.But to run in the old linux, we can't remove
SCHED_OTHER
, even if it no longer exists in the current main branch.But we still need to add
SCHED_NORMAL
, becauseSCHED_OTHER
only exists in the old distribution.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
SCHED_DEADLINE
andSCHED_NORMAL
constants toos
module #127689The text was updated successfully, but these errors were encountered: