Add Task 14 description

This commit is contained in:
Guru Das Srinagesh 2017-04-21 23:31:51 -07:00
parent 30a477c1f0
commit 078290ebc7
1 changed files with 28 additions and 0 deletions

28
Task14/task14.txt Normal file
View File

@ -0,0 +1,28 @@
This is Task 14 of the Eudyptula Challenge
------------------------------------------
Now that you have the basics of lists, and we glossed over the custom
allocators (the first cut at that task was much harder, you got off
easy), it's time to move on to something a bit more old-school: tasks.
For this task:
- Add a new field to the core kernel task structure called, wait for
it, "id".
- When the task is created, set the id to your id. Imaginative, I
know. You try writing these tasks.
- Add a new proc file for every task called, "id", located in the
/proc/${PID}/ directory for that task.
- When the proc file is read from, have it print out the value of
your id, and then increment it by one, allowing different tasks to
have different values for the "id" file over time as they are read
from.
- Provide some "proof" it all works properly.
As you are touching files all over the kernel tree, a patch is the
required result to be sent in here. Please specify which kernel version
you make this patch against, to give my virtual machines a chance to
figure out how to apply it.
Also provide some kind of proof that you tested the patch.
And, in case you happened to forget it, your id is "[redacted]".