* disabling kernel preemption from user space
@ 2010-03-25 14:55 kartikeyan sadasivuni
0 siblings, 0 replies; only message in thread
From: kartikeyan sadasivuni @ 2010-03-25 14:55 UTC (permalink / raw)
To: linux-kernel
Hi,
I have a system where bootloader supports
core0 running linux (control plane).
core1 running application without OS (a data plane app).
(core0 and core1 share some physical memory)
Because of this setup and application requirements
I want to ocassionally disable preemption of linux kernel
for very small periods from user space process.
Is the following valid solution to achive this ?
I will load a kernel module foo.ko which supports the following
ioctl's from user space.
PREEMPT_DISABLE:
calls preempt_disable() from the driver (foo.ko)
PREEMPT_ENABLE:
calls premept_enable() from the driver (foo.ko)
user space process does
ioctl(FOO_FD, PREEMPT_DISABLE, ..);
do some short critcal work
ioctl(FOO_FD, PREEMPT_ENABLE, ..);
Basically I want to know, if preempt_disable() and preempt_enable()
are legal across user to kernel space swtiches are only within kernel.
I don't mind if the solution is wierd/stupid
but works on all 2.6.* kernels.
--
S.Kartikeyan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-25 14:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-25 14:55 disabling kernel preemption from user space kartikeyan sadasivuni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®