From eaedccbe8b86669dd09d43701108a5c16caf3ee3 Mon Sep 17 00:00:00 2001 From: Aleksandr Bulyshchenko Date: Mon, 30 Oct 2017 20:11:05 +0200 Subject: [PATCH] README: add readme files for lessons as placeholders Signed-off-by: Aleksandr Bulyshchenko --- lesson-02-modules-overview/README.md | 1 + lesson-03-modules-interfaces/README.md | 8 ++++++++ lesson-04-memory-management/README.md | 3 +++ lesson-05-time-management/README.md | 6 ++++++ 4 files changed, 18 insertions(+) create mode 100644 lesson-02-modules-overview/README.md create mode 100644 lesson-03-modules-interfaces/README.md create mode 100644 lesson-04-memory-management/README.md create mode 100644 lesson-05-time-management/README.md diff --git a/lesson-02-modules-overview/README.md b/lesson-02-modules-overview/README.md new file mode 100644 index 0000000..ad069ef --- /dev/null +++ b/lesson-02-modules-overview/README.md @@ -0,0 +1 @@ +## Lesson 02 - Kernel module overview diff --git a/lesson-03-modules-interfaces/README.md b/lesson-03-modules-interfaces/README.md new file mode 100644 index 0000000..78f2b3f --- /dev/null +++ b/lesson-03-modules-interfaces/README.md @@ -0,0 +1,8 @@ +## Lesson 03 - Kernel module interfaces + +* Investigate how syscalls work +* Port procfs examples by Oleg Tsiliuric to kernel v4.13 + * examples.245.proc + * Searching for linux kernel where API had been changed: git bisect + * Usually changes are related to arguments of API functions/callbacks +* Port sysfs examples diff --git a/lesson-04-memory-management/README.md b/lesson-04-memory-management/README.md new file mode 100644 index 0000000..d90e905 --- /dev/null +++ b/lesson-04-memory-management/README.md @@ -0,0 +1,3 @@ +## Lesson 04 - Memory Management + +* Add dynamic memory allocation to ”**xxx**” driver from sysfs example using **kmalloc** and **kmem_cache** API. diff --git a/lesson-05-time-management/README.md b/lesson-05-time-management/README.md new file mode 100644 index 0000000..583757b --- /dev/null +++ b/lesson-05-time-management/README.md @@ -0,0 +1,6 @@ +## Lesson 05 - Time Management + +* Implement kernel module with API in sysfs or procfs, which returns time (in seconds) passed since previous read of it. +* Investigate the difference of absolute time API in userspace library and kernel space. +* Try to implement kernel module with API in sysfs or procfs, which returns absolute time of previous reading. +* Implement kernel module with API in sysfs or procfs, which return Fibonacci sequence. Each element of sequence should be generated once in a second.