Bug 19344 - <sched.h> should support SCHED_DEADLINE
Summary: <sched.h> should support SCHED_DEADLINE
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.24
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL: https://www.kernel.org/doc/Documentat...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-08 13:55 UTC by Michael.Baumann
Modified: 2019-03-18 15:50 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael.Baumann 2015-12-08 13:55:47 UTC
I am missing the support to use the SCHED_DEADLINE policy. 
This policy is available in the mainline Kernel since kernel version 3.14. 
To use it we need the sched_setattr() function and struct sched_attr
according to http://man7.org/linux/man-pages/man2/sched_getattr.2.html
Comment 1 volkangezer 2019-03-18 15:50:43 UTC
Apparently this issue is still open.

As can be seen in [1], only RR and FIFO are defined. However in [2] (Linux kernel), it is in the mainline.

If I can get some support, I can try to integrate it into glibc as well.

[1] https://sourceware.org/git/?p=glibc.git;a=blob;f=bits/sched.h;h=c054a0554b39953698209a50d26be051f0a16ce3;hb=HEAD#l27
[2] https://github.com/torvalds/linux/blob/master/include/uapi/linux/sched.h#L42