mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Info on adding system calls
@ 2001-03-02 10:58 T.L.Madhu
  2001-03-06 21:36 ` Peter Samuelson
  0 siblings, 1 reply; 2+ messages in thread
From: T.L.Madhu @ 2001-03-02 10:58 UTC (permalink / raw)
  To: linux-kernel


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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Info on adding system calls
  2001-03-02 10:58 Info on adding system calls T.L.Madhu
@ 2001-03-06 21:36 ` Peter Samuelson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Samuelson @ 2001-03-06 21:36 UTC (permalink / raw)
  To: T.L.Madhu; +Cc: linux-kernel


[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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-03-06 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-02 10:58 Info on adding system calls T.L.Madhu
2001-03-06 21:36 ` Peter Samuelson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®