Re: [Patch] export sched_setscheduler() for kernel module use

From: Jan Engelhardt
Date: Mon Nov 15 2004 - 16:35:35 EST

>> * Dean Nelson (dcn@xxxxxxx) wrote:
>> > +int do_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param)
>> this should be static.
>You're right. I made another change in that one now passes the task_struct
>pointer to sched_setscheduler() instead of the pid. This requires that
>the caller of sched_setscheduler() hold the tasklist_lock. The new patch
>for people's feedback follows.


can you elaborate a little why passing the task struct/pid is better/worse,

Jan Engelhardt
Gesellschaft fÃr Wissenschaftliche Datenverarbeitung
Am Fassberg, 37077 GÃttingen,
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at