mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: doing a callback from the kernel to userspace
@ 2001-11-12 18:27 Manfred Spraul
  2001-11-13  9:47 ` Sebastian Heidl
  0 siblings, 1 reply; 5+ messages in thread
From: Manfred Spraul @ 2001-11-12 18:27 UTC (permalink / raw)
  To: Sebastian Heidl; +Cc: linux-kernel

>
> PS: Yes, I really do need this as signals form the kernel to userspace
>        add to much latency (10 to 20 usecs) and I want to avoid waiting
>        in a system call.

The latency you talk about is the time required to schedule - there is nothing
you driver can do to reduce that - syscall, signal or your own code must wait
until schedule() decides to run your process.

I'd try to
a) switch your process to realtime priority, mlockall your app.
b) use the low-latency patches. They were regularly discussed on
linux-kernel, search through the archives.
c) give up and implement everything in kernel.
d) switch to rtlinux.

Are you sure you need 10 to 20 usec? Then a hard realtime with everything
in kernel is your only option, i.e. rtlinux.

--
    Manfred


^ permalink raw reply	[flat|nested] 5+ messages in thread
* doing a callback from the kernel to userspace
@ 2001-11-12 17:05 Sebastian Heidl
  2001-11-12 18:39 ` Richard B. Johnson
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Heidl @ 2001-11-12 17:05 UTC (permalink / raw)
  To: lkml



Hi,

I read some of the signaling code and must admit that I could not extract the
necessary information from it. Ideally I'd like to call a user-supplied function
having just a pointer to this function and say the task_struct of the owning
process.
What steps are needed to savely do the callback ?  (How) can I retrieve the
necessary information from the task_struct ?

any pointers are welcome
_sh_

PS: Yes, I really do need this as signals form the kernel to userspace add to
    much latency (10 to 20 usecs) and I want to avoid waiting in a system call.


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

end of thread, other threads:[~2001-11-13  9:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-12 18:27 doing a callback from the kernel to userspace Manfred Spraul
2001-11-13  9:47 ` Sebastian Heidl
  -- strict thread matches above, loose matches on Subject: below --
2001-11-12 17:05 Sebastian Heidl
2001-11-12 18:39 ` Richard B. Johnson
2001-11-13  9:47   ` Sebastian Heidl

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®