Re: [REPORT] cfs-v4 vs sd-0.44

Ulrich Drepper
2007-04-22T07:17:33Z

On 4/22/07, William Lee Irwin III <wli@holomorphy.com> wrote:
> I'm just looking for what people want the API to be here. With that in
> hand we can just go out and do whatever needs to be done.

I think a sched_yield_to is one interface:

int sched_yield_to(pid_t);

For futex(), the extension is needed for the FUTEX_WAIT operation. We
need a new operation FUTEX_WAIT_FOR or so which takes another (the
fourth) parameter which is the PID of the target.

For FUTEX_LOCK_PI we need no extension. The futex value is the PID of
the current owner. This is required for the whole interface to work
in the first place.