LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   add new system call to kernel 3.6 (https://www.linuxquestions.org/questions/linux-newbie-8/add-new-system-call-to-kernel-3-6-a-4175483824/)

fatcomp 11-08-2013 12:09 AM

add new system call to kernel 3.6
 
Dear Sir/Madam,

I am new in the programming of kerenel. I would like to add new system call to the fedora (kernel 3.6). I tried the information avaliable on the net about kernel before 3.6, but I couldn't useful link for 3.6. Can any body help (detailed steps)?

Thanks in advance

paulsm4 11-08-2013 12:24 AM

The specifics changed in kernel v3.3. Any instructions you have for 3.3 or higher should work with 3.6.

Here are a couple of links:

* http://stackoverflow.com/questions/9...nux-kernel-3-3

* http://linuxfornaveen.blogspot.com/2...to-latest.html

* http://forums.fedoraforum.org/showthread.php?t=290658

fatcomp 11-08-2013 01:36 AM

Thanks for your quick answer I used the following website:
http://xathrya.web.id/blog/2012/10/1...o-linux-3-6-1/
and test for one function (mycall) but I get -1 I don't why??

fatcomp 11-08-2013 02:18 AM

What do I select in the make menuconfig, so my system call will work properly?

xathrya 12-11-2013 03:16 AM

Hi,

Make sure all you give the correct number for system call. The syscall number should be unique and not overlapping each other.

Quote:

Originally Posted by fatcomp (Post 5060550)
Thanks for your quick answer I used the following website:
http://xathrya.web.id/blog/2012/10/1...o-linux-3-6-1/
and test for one function (mycall) but I get -1 I don't why??



All times are GMT -5. The time now is 02:15 AM.