Re: [PATCH] scheduler: introduce SCHED_RESET_ON_FORK schedulingpolicy flag, Second try

From: Ingo Molnar
Date: Fri Jun 05 2009 - 07:54:30 EST



* Lennart Poettering <mzxreary@xxxxxxxxxxx> wrote:

> Why expose this via sched_setscheduler() and not other syscalls
> such as prctl() or sched_setparam()?
>
> prctl() does not take a pid parameter. Due to that it would be
> impossible to modify this flag for other processes than the
> current one.
>
> The struct passed to sched_setparam() can unfortunately not be
> extended without breaking compatibility, since sched_setparam()
> lacks a size parameter.

Well, it could be extended, if we wanted to. Right now
sched_priority has a valid value of 0 to 100. We could introduce a
new value '-1' to mean: 'extended struct sched_param'.

A new getparam syscall could then be introduced - only used by new
user-space.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/