I am trying to write my own system call in linux kernel version 3.8.8. I searched on the internet and there are steps how to do it. Especially this link http://franksthinktank.com/howto/addsyscall/ is good. However. even though I followed all the steps it didn't work. I got an error saying that no rule to make target needed by kernel/built-in.
Then I tried to move the systemcall in one of the .c files in kernel directory, it didn't work either. I am trying to follow the example in the above link as practice. Actually what I want to do is to get the time of the system so I need to access xtime variable of the system. So, I must implement my system call in timekeeping.c file.
I was wondering which files exactly I change in kernel version 3.8.8 in order to implement a system call?
Thank you.