03 module task#119
Conversation
AleksandrBulyshchenko
left a comment
There was a problem hiding this comment.
Please base your PRs on your branch at point which already includes task commit.
Task should be included via merge from master.
In this particular case you should merge 158b7e8 into https://github.com/Kernel-GL-HRK/gl-kernel-training-2021/commits/Maryna.Malakhova and rebase this PR onto that point.
The same is relevant for other PRs as well.
| #include <linux/module.h> // Core header for loading LKMs into the kernel | ||
| #include <linux/kernel.h> // Contains types, macros, functions for the kernel | ||
| #include <linux/module.h> // Core header for loading LKMs into the kernel | ||
| #include <linux/kernel.h> // Contains types, macros, functions for the kernel |
There was a problem hiding this comment.
Generally I'd ask to fix codestyle in place, but as this is a separate point of task, lets keep such fixup commit.
- You still have inconsistent indentation of comments (in includes block);
- Add
Fixesline in commit message per kernel standard;
9b871ff to
9d76817
Compare
|
Thank you for the review. I think. that I've fixed |
645cd60 to
6353ce6
Compare
AleksandrBulyshchenko
left a comment
There was a problem hiding this comment.
Please rebase onto 158b7e8, as we agreed.
| $(MAKE) -C $(BUILD_KERNEL) M=$(CURDIR) modules | ||
|
|
||
| clean: | ||
| $(MAKE) -C $(BUILD_KERNEL) M=$(CURDIR) clean |
There was a problem hiding this comment.
Makefile expects BUILD_KERNEL being defined in environment,
but neither code, nor commit message don't explain this.
6353ce6 to
b88d68a
Compare
|
Thanks for the review, I`ve fixed |
Add Makefile, source file according to the lecture Module has been compiled and checked on Beaglebone BBB kernel has been made on the linux-stable 14.9y base Variable BUILD_KERNEL should be set in the environment for building BUILD_KERNEL should define path to the linux kernel source folder Signed-off-by: Maryna Malakhova <maryna.malakhova@globallogic.com>
Added parameter to module init and it is provided as a result Signed-off-by: Maryna Malakhova <maryna.malakhova@globallogic.com>
Init could return 0 or negative values Signed-off-by: Maryna Malakhova <maryna.malakhova@globallogic.com>
Add log file of module's output Signed-off-by: Maryna Malakhova <maryna.malakhova@globallogic.com>
b88d68a to
da90cc1
Compare
Add a simple module realization and it`s log output from BBboard