All of lore.kernel.org
 help / color / mirror / Atom feed
From: j.neuschaefer@gmx.net (Jonathan Neuschäfer)
To: kernelnewbies@lists.kernelnewbies.org
Subject: sysfs: pass function pointers to kernel (not just a value through attribute)
Date: Wed, 19 Dec 2012 21:52:48 +0100	[thread overview]
Message-ID: <20121219205248.GD3158@debian.debian> (raw)
In-Reply-To: <CAER6CkfzRtH2pG1g8pn8qohO7KSdESPNKZwFaxA73OAUWxFukg@mail.gmail.com>

On Mon, Dec 17, 2012 at 10:11:46AM -0500, Terry Hsu wrote:
> Hello everyone,
> 
> I am looking for some mechanism for userspace tasks to pass certain
> functions to kernel and let the kernel execute these functions on behalf of
> userspace tasks. I know that sysfs can be used with kobject embedded into
> internal kernel structure to access kernel variables. But is there anyway
> for userspace tasks to pass a function to kernel to execute through sysfs?
> 
> PS: adding syscall in the kernel can certainly satisfy my needs but it is
> less favorable because the new kernel service I want to add is not that
> general to be added as a new syscall.
> 
> Thanks in advance!
> T

You might want to use plain old kernel modules, after all.

Greetings,
Jonathan Neusch?fer

      parent reply	other threads:[~2012-12-19 20:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-17 15:11 sysfs: pass function pointers to kernel (not just a value through attribute) Terry Hsu
2012-12-17 15:32 ` Yann Droneaud
2012-12-19  0:37   ` Terry Hsu
2012-12-19 20:52 ` Jonathan Neuschäfer [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=20121219205248.GD3158@debian.debian \
    --to=j.neuschaefer@gmx.net \
    --cc=kernelnewbies@lists.kernelnewbies.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.