* Zero copy between ISR, kernel and User
@ 2006-09-27 4:01 Wink Saville
2006-09-27 19:10 ` Stephen Hemminger
0 siblings, 1 reply; 3+ messages in thread
From: Wink Saville @ 2006-09-27 4:01 UTC (permalink / raw)
To: linux-kernel
Hello,
I would like to allow the transferring of data between ISR's, kernel and
user code, without requiring copying. I envision allocating buffers in
the kernel and then mapping them so that they appear at the same
addresses to all code, and never being swapped out of memory.
Is this feasible for all supported Linux architectures and is there
existing code that someone could point me towards?
Regards,
Wink Saville
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Zero copy between ISR, kernel and User
2006-09-27 4:01 Zero copy between ISR, kernel and User Wink Saville
@ 2006-09-27 19:10 ` Stephen Hemminger
2006-09-28 14:45 ` Wink Saville
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2006-09-27 19:10 UTC (permalink / raw)
To: linux-kernel
On Tue, 26 Sep 2006 21:01:45 -0700
Wink Saville <wink@saville.com> wrote:
> Hello,
>
> I would like to allow the transferring of data between ISR's, kernel and
> user code, without requiring copying. I envision allocating buffers in
> the kernel and then mapping them so that they appear at the same
> addresses to all code, and never being swapped out of memory.
>
> Is this feasible for all supported Linux architectures and is there
> existing code that someone could point me towards?
>
> Regards,
>
> Wink Saville
>
Your better off having application mmap a device, then transfer
the data to there. Something like AF_PACKET.
--
Stephen Hemminger <shemminger@osdl.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Zero copy between ISR, kernel and User
2006-09-27 19:10 ` Stephen Hemminger
@ 2006-09-28 14:45 ` Wink Saville
0 siblings, 0 replies; 3+ messages in thread
From: Wink Saville @ 2006-09-28 14:45 UTC (permalink / raw)
To: Stephen Hemminger, linux-kernel
Stephen Hemminger wrote:
> On Tue, 26 Sep 2006 21:01:45 -0700
> Wink Saville <wink@saville.com> wrote:
>
>
>> Hello,
>>
>> I would like to allow the transferring of data between ISR's, kernel and
>> user code, without requiring copying. I envision allocating buffers in
>> the kernel and then mapping them so that they appear at the same
>> addresses to all code, and never being swapped out of memory.
>>
>> Is this feasible for all supported Linux architectures and is there
>> existing code that someone could point me towards?
>>
>> Regards,
>>
>> Wink Saville
>>
>>
>
> Your better off having application mmap a device, then transfer
> the data to there. Something like AF_PACKET.
>
>
Is there some reason a kernel module can't mmap first, for instance I
assume display drivers might do that? One of the reasons I need it to
done in the kernel first is that data could come from the device or
other entities before the application is running.
But I will study AF_PACKET handling.
Thanks,
Wink
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-09-28 14:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27 4:01 Zero copy between ISR, kernel and User Wink Saville
2006-09-27 19:10 ` Stephen Hemminger
2006-09-28 14:45 ` Wink Saville
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox