Page MenuHomeFreeBSD

linux: implement sched_getattr()
Needs ReviewPublic

Authored by ngie on Fri, Oct 2, 12:51 AM.

Details

Reviewers
None
Group Reviewers
Linux Emulation
Summary

This change adds the necessary glue to translate Linux scheduler policy
and priority from FreeBSD so this information is available to Linux
applications.

This unbreaks using the Linux version of Chromium on FreeBSD.

This change was originally submitted via [freebsd/freebsd-src#2370][github-pr].

PR: 297468
Co-Authored-By: Enji Cooper <ngie@FreeBSD.org>
Signed-off-by: Joao Bonifacio <joaoboni017@gmail.com>

[github-pr]: https://github.com/freebsd/freebsd-src/pull/2370

Test Plan

TODO:

  • build change and test as shown in the PR (minimum bar)
  • run the relevant sched_getattr tests from LTP.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77590
Build 74473: arc lint + arc unit