Thread (2 messages) 2 messages, 2 authors, 2021-08-05

Re: [PATCH 18/19] sched: prctl() core-scheduling interface

flat view

From: Eugene Syromiatnikov <hidden>
Date: 2021-08-05 16:53:36
Also in: lkml

On Thu, Apr 22, 2021 at 02:05:17PM +0200, Peter Zijlstra wrote:
API:

  prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, tgtpid, pidtype, &cookie)
  prctl(PR_SCHED_CORE, PR_SCHED_CORE_CREATE, tgtpid, pidtype, NULL)
  prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_TO, tgtpid, pidtype, NULL)
  prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_FROM, srcpid, pidtype, NULL)

where 'tgtpid/srcpid == 0' implies the current process and pidtype is
kernel enum pid_type {PIDTYPE_PID, PIDTYPE_TGID, PIDTYPE_PGID, ...}.
It means that enum pid_tipe has to be a part of UAPI now.  Would you
like to address it, or rather I'd send a patch?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help