mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Samuelson <peter@cadcamlab.org>
To: "T.L.Madhu" <madhu.tarikere@wipro.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Info on adding system calls
Date: Tue, 6 Mar 2001 15:36:26 -0600	[thread overview]
Message-ID: <20010306153625.D28368@cadcamlab.org> (raw)
In-Reply-To: <Pine.PTX.3.96.1010302162652.16554L-100000@wipro.wipsys.sequent.com>
In-Reply-To: <Pine.PTX.3.96.1010302162652.16554L-100000@wipro.wipsys.sequent.com>; from madhu.tarikere@wipro.com on Fri, Mar 02, 2001 at 04:28:28PM +0530


[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

      reply	other threads:[~2001-03-06 21:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-02 10:58 T.L.Madhu
2001-03-06 21:36 ` Peter Samuelson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010306153625.D28368@cadcamlab.org \
    --to=peter@cadcamlab.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=madhu.tarikere@wipro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®