lkml.org 
[lkml]   [2001]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Info on adding system calls
From

[T.L.Madhu]
> I want to add a function defined in my loadeble kernel module as
> system call.

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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.119 / U:1.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site