Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Re: Sending UDP Packets from a kernel thread/module

Reply
 
Thread Tools Display Modes
  #1  
Old 12-05-2005, 12:54 PM
Default Re: Sending UDP Packets from a kernel thread/module



[note, Followup-To list has been shortened]

In comp.os.linux.development.system ShriRam <(E-Mail Removed)> wrote:

| Hi,
| I am trying to send audio from one machine to another at 96KHZ
|
| I want to eliminate the system call delays.
|
|
| I want my code to run in the kernel module.
|
|
| Can u please let me know how do one send a udp packet from within
| the kernel.

It would basically be the same set of syscalls as done from user space.
You would save the overhead of user space context switching, but the
system call delays would not be saved. If you really want to avoid the
system call delays, you would need to have your code replicate all that
is done in those system calls, and this would be a monumental task.

Audio at 96 kHz is trivial compared to something like video. Yet video
is easily handled from user space on machines as slow as 400 MHz. What
kind of machine is this you are using?

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------


phil-news-nospam@ipal.net
Reply With Quote
Reply

Tags
kernel, packets, sending, thread or module, udp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.