user callback requirement from kernel mode
I have a requirement to use a freeware linux user mode library for data processing.
The input data is purely in kernel space and we are finding it very difficult to port
whole freeware community based project to build under linux kernel build system !
So normally the requirement is to make a callback from kernel to user mode,
call user mode lib and let it process input data
return back to kernel mode and signal the consumer.
Is it possible to achieve kernel to user mode callback ?
If it's not possible, then I have another idea to create a user mode thread making kernel calls (ioctl),
which initially blocked, being signalled when there is sufficient data. Come back to user mode,
process data in user mode, make an ioctl call, switch to kernel mode,
But the second scheme will be costlier and include 2 context switch and also difficult
to adapt in our enviornment.
Your suggestions will be very helpful.
Webinar: 8 Signs You’re Beyond Cron
On Demand NOW
Join Linux Journal and Pat Cameron, Director of Automation Technology at HelpSystems, as they discuss the eight primary advantages of moving beyond cron job scheduling. In this webinar, you’ll learn about integrating cron with an enterprise scheduler.View Now!
|diff -u: What's New in Kernel Development||May 06, 2015|
|Chrome-Colored Parakeets||May 05, 2015|
|Mumblehard--Let's End Its Five-Year Reign||May 04, 2015|
|An Easy Way to Pay for Journalism, Music and Everything Else We Like||May 04, 2015|
|When Official Debian Support Ends, Who Will Save You?||May 01, 2015|
|May 2015 Issue of Linux Journal: Cool Projects||May 01, 2015|
- Chrome-Colored Parakeets
- diff -u: What's New in Kernel Development
- Mumblehard--Let's End Its Five-Year Reign
- An Easy Way to Pay for Journalism, Music and Everything Else We Like
- When Official Debian Support Ends, Who Will Save You?
- Ubuntu Ditches Upstart
- "No Reboot" Kernel Patching - And Why You Should Care
- Video On Demand: 8 Signs You're Beyond Cron
- Picking Out the Nouns
- DevOps: Better Than the Sum of Its Parts