Lines Matching refs:param
12 * specified in the sched_param structure pointed to by param.
48 struct sched_param param;
59 if(sched_getparam(child_pid, ¶m) != 0){
67 old_priority = param.sched_priority;
76 new_priority = param.sched_priority == min_priority ?
77 (param.sched_priority = sched_get_priority_max(policy)) :
78 (param.sched_priority = min_priority);
81 result = sched_setparam(child_pid, ¶m);
84 if(sched_getparam(child_pid, ¶m) != 0){
90 if(result == 0 && param.sched_priority == new_priority) {
94 } else if(result == 0 && param.sched_priority == old_priority) {
95 printf("The param does not change.\n");
99 printf("The process have not permission to change the param of its child.\n");
105 param.sched_priority = (new_priority -= 2);
106 result = sched_setparam(child_pid, ¶m);
108 if(result == 0 && param.sched_priority == new_priority) {