We just got an intermediate project for my course on "operating systems", we are invited to implement a system call (and I assume that we will have to write a piece of code to call it).
I understand that I will need to update the system call table (I don’t remember the name, but not biggie), and also create a kernel module that the table will refer to, but does that mean I will have to recompile the whole kernel, so the kernel knows about my module?
I saw that it is possible to capture the current system call, but I suspect that I will not get credit for my job if I do.
I just wanted to feel the size of the efforts that I will make.
UPDATE: Well, in the end, it became a problem, they change some things starting from version 2.6.32, so when I returned to the previous version of the kernel specific for students on the Internet, I found it was really easy to follow. If someone catches this on the Internet and follows the tutorial, initially I would recommend downloading the same kernel in the tutorial first and then moving from there when you have an understanding of what you are doing. If you are really familiar with compiling kernels, etc., you might not have a problem, but this was the first time I built the kernel, so it was painful to compile for 2 hours, and then find out something wasn’t working, and have to do it again, especially when I wasn’t sure that I / didn’t do it wrong.
source share