It is currently Thu, 29 Oct 2020 12:57:33 GMT



 
Author Message
 Info on adding system calls

Hi,

I want to add a function defined in my loadeble kernel module as system
call.
I know the procedure regarding how to add a system call permanently into
the kernel. But, doesn't know regarding how to add it for kernel loadable
module.

I will be thankful, if you can provide me any info/pointers.

Thanks,
Madhu

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at   http://www.**-**.com/
Please read the FAQ at   http://www.**-**.com/



 Tue, 19 Aug 2003 19:10:04 GMT   
 Info on adding system calls

[T.L.Madhu]

You can't.  At least not without hackery -- anything is possible with a
bit of hackery.

And there are at least two good reasons for this.  First: adding
syscalls at runtime is a recipe for chaos in terms of applications
knowing what the ABI should be.  What if two modules wanted the same
unallocated syscall?  Should the second one fail, or should it just get
a free syscall, and somehow publish its syscall to userspace so apps
can use it?

The second is philosophical.  At the top of the COPYING file in the
kernel source, you see that Linus has made an exception to the GPL, to
allow anyone to write and distribute non-GPL modules, as long as they
do not compile directly into the kernel.  However, he doesn't want
people to use this as a general GPL circumvention device, so he will
not make it convenient to extend the system call interface this way.

Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



 Sun, 24 Aug 2003 05:40:04 GMT   
 
   [ 2 post ] 

Similar Threads

1. How I could add a new system call to linux or modify a system calls

2. To get system info using C library calls

3. Adding new system call to Solaris 2.x

4. how to add system call in Solaris

5. Add system call to kernel

6. adding system call

7. Adding system calls to Solaris

8. Writing system call info needed...

9. adding new system call??

10. help:how can I add my system call


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software