Re: IPC between tasks in kernel

From: Amit Limaye (amit.limaye_at_gmail.com)
Date: 02/11/05


Date: 10 Feb 2005 15:18:34 -0800

Please have a look at workqueues/taskqueues/waitqueues which will allow
u to manage synchronization problems and everything u could set up a
commom buffer between the the kernel threads/tasklets/tasks and use
waitquesues to signal availability of data
BTW semaphore are also available in the kernel which u can use for
syncing with shared buffers as mentioned earlier u dont need to
explicitly share buffers or data as all global data is visible to all
tasks in the kernel



Relevant Pages

  • Re: RAID-1 performance under 2.4 and 2.6
    ... Modern applications which care about streaming I/O performance use large, aligned buffers which allow the kernel to efficiently optimize things, or they use direct I/O to do it themselves, or they make use of system calls like fadvise, madvise, splice, etc. that inform the kernel how they intend to use the data or pass the work off to the kernel completely. ... I'm less sure that large buffers are allocated on the stack, but often the behavior of the application models is the small buffered writes dd would do by default. ... And this is what I was saying earlier, there is a trend to blame the benchmark when in fact the same benchmark runs well on 2.4. ...
    (Linux-Kernel)
  • Re: Virtual alias cache coherency results (was: x86, ARM, PARISC, PPC, MIPS and Sparc folks please r
    ... >> The kernel works around this, but, due to some bugs on StrongARM chips ... You said you have results which report write buffers, ... CPU implementer: 0x41 ... Cache clean: cp15 c7 ops ...
    (Linux-Kernel)
  • Re: Reentrant problem with inet_ntoa in the kernel
    ... I am confused by the use of inet_ntoa function in the kernel. ... What about extending log and printf to ... that stack space is a limited resource in the ... which means adding those buffers can hit quite hard. ...
    (freebsd-net)
  • Re: IPC between tasks in kernel
    ... commom buffer between the the kernel threads/tasklets/tasks and use ... explicitly share buffers or data as all global data is visible to all ...
    (comp.os.linux.embedded)
  • [RFC] LTTng Userspace Tracing, vDSO
    ... I am poking in the userspace tracing problem again. ... The idea is to fast-path tracing so a system call is not required. ... Per CPU buffers mapped by both userspace and the kernel ... can afford to have smaller buffers than the kernel buffers. ...
    (Linux-Kernel)