diff options
authorBryan Brattlof <hello@bryanbrattlof.com>2020-07-15 16:24:54 -0400
committerBryan Brattlof <hello@bryanbrattlof.com>2020-07-15 16:24:54 -0400
commitffb738163d21ad1fe339256cdcffc295d51a83ff (patch)
parent3de97e1b57e2e4de1a73501bbe4992ebff580074 (diff)
task 14: add task readme
2 files changed, 33 insertions, 0 deletions
diff --git a/readme.rst b/readme.rst
index e98653c..2058fba 100644
--- a/readme.rst
+++ b/readme.rst
@@ -38,3 +38,5 @@ Here are the links to each task's readme:
12. Linked Lists in Kernel Space: `task <https://git.bryanbrattlof.com/eudyptula-challenge/tree/tasks/12/readme>`__
13. Optimizing Linked Lists: `task <https://git.bryanbrattlof.com/eudyptula-challenge/tree/tasks/13/readme>`__
+14. Process Task: `task <https://git.bryanbrattlof.com/eudyptula-challenge/tree/tasks/13/readme>`__
diff --git a/tasks/14/readme b/tasks/14/readme
new file mode 100644
index 0000000..a490d10
--- /dev/null
+++ b/tasks/14/readme
@@ -0,0 +1,31 @@
+Task 14
+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. \ No newline at end of file