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.
Fast/Flexible Linux OS Recovery
On Demand Now
In this live one-hour webinar, learn how to enhance your existing backup strategies for complete disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible full-system recovery solution for UNIX and Linux systems.
Join Linux Journal's Shawn Powers and David Huffman, President/CEO, Storix, Inc.
Free to Linux Journal readers.Register Now!
- Download "Linux Management with Red Hat Satellite: Measuring Business Impact and ROI"
- Profiles and RC Files
- Understanding Ceph and Its Place in the Market
- Git 2.9 Released
- Astronomy for KDE
- Maru OS Brings Debian to Your Phone
- OpenSwitch Finds a New Home
- What's Our Next Fight?
- The Giant Zero, Part 0.x
- Snappy Moves to New Platforms
With all the industry talk about the benefits of Linux on Power and all the performance advantages offered by its open architecture, you may be considering a move in that direction. If you are thinking about analytics, big data and cloud computing, you would be right to evaluate Power. The idea of using commodity x86 hardware and replacing it every three years is an outdated cost model. It doesn’t consider the total cost of ownership, and it doesn’t consider the advantage of real processing power, high-availability and multithreading like a demon.
This ebook takes a look at some of the practical applications of the Linux on Power platform and ways you might bring all the performance power of this open architecture to bear for your organization. There are no smoke and mirrors here—just hard, cold, empirical evidence provided by independent sources. I also consider some innovative ways Linux on Power will be used in the future.Get the Guide