Re: How to avoid data copies in a driver ?
- From: "Francis Moreau" <francis.moro@xxxxxxxxx>
- Date: Thu, 15 May 2008 09:40:47 +0200
Hello,
On Wed, May 14, 2008 at 11:23 PM, linux-os (*** Johnson)
<linux-os@xxxxxxxxxxxx> wrote:
You memory-map the data. Impliment mmap() in your driver.
You can also impliment poll() { select() } so your
application knows when new data are available.
You cannot use a user-mode file-descriptor in the kernel.
Why not ?
I'm suprised because what I need doens't seem so uncommon, usually
devices send or
receive data to/from files. So a helper (system call ?) to achieve
that other than the basic
read/write seems needed, no ?
--
Francis
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: How to avoid data copies in a driver ?
- From: Jeremy Fitzhardinge
- Re: How to avoid data copies in a driver ?
- From: linux-os (*** Johnson)
- Re: How to avoid data copies in a driver ?
- From: Arnd Hannemann
- Re: How to avoid data copies in a driver ?
- References:
- How to avoid data copies in a driver ?
- From: Francis Moreau
- Re: How to avoid data copies in a driver ?
- From: linux-os (*** Johnson)
- How to avoid data copies in a driver ?
- Prev by Date: Re: v2.6.25: SKB BUG: Invalid truesize (260) len=134, sizeof(sk_buff)=164
- Next by Date: Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers to fix more potential unaligned issues.
- Previous by thread: Re: How to avoid data copies in a driver ?
- Next by thread: Re: How to avoid data copies in a driver ?
- Index(es):