What is the best method to add system call in linux kernel?
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
What is the best method to add system call in linux kernel?
I have added a system call in my custom compiled kernel. Whenever I try to call it, it retuns -1. Ideally it should return a long.
=> most probably the call is not implemented correctly.
Q:1: How do I know if my system call is implemented correctly?
Q:2: Is there any debugging method which I can use?
(I am a windows guy just playing around)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.