Lines Matching defs:flag
147 int SysSchedGetScheduler(int id, int flag)
154 if (flag < 0) {
184 int SysSchedSetScheduler(int id, int policy, const LosSchedParam *userParam, int flag)
193 if (flag < 0) {
221 int SysSchedGetParam(int id, LosSchedParam *userParam, int flag)
228 if (flag < 0) {
301 int SysSchedSetParam(int id, const LosSchedParam *userParam, int flag)
306 if (flag < 0) {
322 return SysSchedSetScheduler(id, policy, userParam, flag);
1295 /* If flag >= 0, the process mode is used. If flag < 0, the thread mode is used. */
1296 static int SchedAffinityParameterPreprocess(int id, int flag, unsigned int *taskID, unsigned int *processID)
1298 if (flag >= 0) {
1318 /* If flag >= 0, the process mode is used. If flag < 0, the thread mode is used. */
1319 int SysSchedGetAffinity(int id, unsigned int *cpuset, int flag)
1327 ret = SchedAffinityParameterPreprocess(id, flag, &taskID, &processID);
1333 if (flag >= 0) {
1364 /* If flag >= 0, the process mode is used. If flag < 0, the thread mode is used. */
1365 int SysSchedSetAffinity(int id, const unsigned short cpuset, int flag)
1378 ret = SchedAffinityParameterPreprocess(id, flag, &taskID, &processID);
1383 if (flag >= 0) {