[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to send data directly out network interface from driver?
On Fri, Jan 30, 2009 at 10:23 PM, Greg KH <greg@xxxxxxxxx> wrote:
> On Fri, Jan 30, 2009 at 02:55:01PM -0500, Bob Beers wrote:
>> I have a voip device where I currently send my data up/down between driver
>> and user space using an interrupt driven read/write scheme. I send/recv
>> the data using standard UDP packets in userspace. I'd like to try to decrease
>> my end-to-end latency by letting the driver send/recv most of this
>> data directly
>> to the network.
>>
>> Are there drivers which already do this kind of thing that I might learn from?
>
> You can access the socket interface directly within the kernel, look for
> that, and any callers of this code, there should be a few users for you
> to get an idea of how to use it.
Thanks Greg, I found this[1] also. Is it still a good example?
[1] <http://kernelnewbies.org/Simple_UDP_Server>
-Bob
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ