kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* sysfs: pass function pointers to kernel (not just a value through attribute)
@ 2012-12-17 15:11 Terry Hsu
  2012-12-17 15:32 ` Yann Droneaud
  2012-12-19 20:52 ` Jonathan Neuschäfer
  0 siblings, 2 replies; 4+ messages in thread
From: Terry Hsu @ 2012-12-17 15:11 UTC (permalink / raw)
  To: kernelnewbies

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121217/853f3201/attachment.html 

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

end of thread, other threads:[~2012-12-19 20:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).