All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: kernel space access to user space functions
Date: 30 Nov 2002 15:44:18 -0800	[thread overview]
Message-ID: <asbigi$gh7$1@cesium.transmeta.com> (raw)
In-Reply-To: 3DE91CBF.295C1491@bigpond.net.au

Followup to:  <3DE91CBF.295C1491@bigpond.net.au>
By author:    Chris Ison <cisos@bigpond.net.au>
In newsgroup: linux.dev.kernel
>
> I realize I asked this previously, but the answer given was not to the
> question I asked.
> 
> How can I get a kernel module to call a function within a program?
> 

You can't.

> The reason being I am creating a software midi driver and already have a
> small program that does what I want the driver to do, problem is all the
> math in the program is floating point.

There are functions now in the kernel (kernel_fpu_begin() and
kernel_fpu_end()) to allow the use of floating point inside the
kernel.

> What I would like to do, is be able to run the program, and have the
> kernel software midi driver call a function within the program to que up
> midi events, and have the program do all the hard work of the wavetable
> synth.
> 
> This way, any improvements to the software don't have to be translated
> to the driver, and visa versa.
> 
> How can I make this happen. And please give an example.

You can't.

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>

  reply	other threads:[~2002-11-30 23:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-30 20:17 kernel space access to user space functions Chris Ison
2002-11-30 23:44 ` H. Peter Anvin [this message]
2002-12-01  2:27 ` Andrew McGregor

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='asbigi$gh7$1@cesium.transmeta.com' \
    --to=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.