Lines Matching refs:tasks
501 static int write_pid_to_tasks(char *tasks, pid_t pid)
505 fp = fopen(tasks, "w");
507 ksft_perror("Failed to open tasks file");
512 ksft_print_msg("Failed to write pid to tasks file\n");
541 char tasks[1024];
553 sprintf(tasks, "%s/tasks", controlgroup);
554 ret = write_pid_to_tasks(tasks, bm_pid);
568 sprintf(tasks, "%s/mon_groups/%s/tasks",
570 ret = write_pid_to_tasks(tasks, bm_pid);