I want to add an entry to process control block structure (task_struct
). Let say a way to tag some process. I want to initialize this field to 0 for all the process except "some special processes", later by calling sched_setscheduler()
I will set this flag for the "special processes".
Does anybody have an idea how to assign a default value to a member variable in task_struct
?