How to send data directly out network interface from driver?

2009-01-30 Thread Bob Beers
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

Re: How to send data directly out network interface from driver?

2009-02-04 Thread Bob Beers
On Fri, Jan 30, 2009 at 10:23 PM, Greg KH 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 da

Re: How to send data directly out network interface from driver?

2009-02-11 Thread Bob Beers
On Fri, Jan 30, 2009 at 10:23 PM, Greg KH 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 da

Re: Linux option for network

2009-03-04 Thread Bob Beers
On Wed, Mar 4, 2009 at 9:53 AM, Bizhan Gholikhamseh (bgholikh) wrote: > Hi All, > What is the Linux option parameters to set the network interface to: >auto negotiation: off, >full duplex, >speed 1000 ? Maybe this is not what you are asking, but ... These options can be se

Re: understanding the linux code

2009-03-31 Thread Bob Beers
On Tue, Mar 31, 2009 at 12:56 PM, Rakesh Radhakrishnan wrote: > Is the earlier versions of linux code available? Can some one share that > location. ? -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.or

Re: printk not printing to kernel log

2009-04-01 Thread Bob Beers
Sorry, didn't mean to exclude the list, added it back as CC: On Wed, Apr 1, 2009 at 2:15 AM, Sukanto Ghosh wrote: > On Tue, Mar 24, 2009 at 11:57 PM, Bob Beers wrote: >> On Tue, Mar 24, 2009 at 2:15 PM, Sukanto Ghosh >> wrote: >> >>> What might be the

Re: Question about kernel module syntax !!

2009-05-11 Thread Bob Beers
On Mon, May 11, 2009 at 5:00 PM, RT Mistler wrote: > Hi, > > I've been looking at some kernel modules trying to map an embedded > devices resources and while going through a driver, I encountered an > "if" test that employed "!!", example: > > if !!function_foo(args) { >  ... > } > > What does the

Re: Question about kernel module syntax !!

2009-05-11 Thread Bob Beers
On Mon, May 11, 2009 at 5:22 PM, Robert P. J. Day wrote: > On Mon, 11 May 2009, Bob Beers wrote: > >> On Mon, May 11, 2009 at 5:00 PM, RT Mistler wrote: >> > Hi, >> > >> > I've been looking at some kernel modules trying to map an embedded >> &g

Re: Integrating kernel module code into kernel source tree.

2009-07-27 Thread Bob Beers
On Mon, Jul 27, 2009 at 7:13 AM, Denis Borisevich wrote: > Hi! > I have driver for PCI serial board, it compiles as a module, loads and > works fine. Now it exists as a several files outside the kernel source > tree. I want to integrate this code within the kernel source tree: I > want it to exist

Re: kernel to kernel read page reading less bytes

2009-10-02 Thread Bob Beers
IANM, printing with %s will stop at first byte that is 0x0 (null byte indicates end of string). Maybe try printing %c in a loop the size of received data? HTH, -Bob Beers -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.

Re: Checking status of userspace processes

2009-10-21 Thread Bob Beers
On Wed, Oct 21, 2009 at 3:07 PM, Leonidas . wrote: > On Thu, Oct 22, 2009 at 12:26 AM, Leonidas . wrote: >> What would be an ideal way to check if a process/thread is running or >> sleeping >> or it is dead from kernel space? >> >> Basically, check whether a process is alive, then determine its

How to fix a module's Section mismatch warnings?

2010-07-16 Thread Bob Beers
' WARNING: vmlinux - Section mismatch: reference to .init.text: from .data between 'apic_bigsmp' (at offset 0xc068b744) and 'cpu.4831' Any pointers greatly appreciated. I can provide more info as required. -Bob Beers -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

Re: How to fix a module's Section mismatch warnings?

2010-07-16 Thread Bob Beers
On Fri, Jul 16, 2010 at 2:15 PM, Mulyadi Santosa wrote: > Hi... > > On Fri, Jul 16, 2010 at 21:53, Bob Beers wrote: >> How do I figure out where to fix it? > > Could it be due to custom linker script used in your driver code? Hmmm, It looks lilke a pre

Re: How to fix a module's Section mismatch warnings?

2010-07-19 Thread Bob Beers
On Sat, Jul 17, 2010 at 5:41 AM, Mulyadi Santosa wrote: > Hi Bob.. > > On Sat, Jul 17, 2010 at 02:08, Bob Beers wrote: >> Hmmm,  It looks lilke a pretty standard Makefile: >> >> ---8<--- >> CC=gcc >> VER=`unam

Re: How to fix a module's Section mismatch warnings?

2010-07-19 Thread Bob Beers
On Mon, Jul 19, 2010 at 10:37 AM, Daniel (Youngwhan) Song wrote: > I found similar one here: > http://www.mail-archive.com/linux-ker...@vger.kernel.org/msg249131.html > Thanks Daniel, I'm reading it, but I still haven't seen how to use the warnings to find/fix the mismatches. It could be that

Re: How to fix a module's Section mismatch warnings?

2010-07-20 Thread Bob Beers
On Mon, Jul 19, 2010 at 1:29 PM, Youngwhan Song wrote: > I believe the patch should be in the driver code by either changing > names or using of __init_refok rather than modifying of kernel. Yes, I agree, some change to the driver code, but which names do I change? variables?, functions? -Bob

request_irq() change?

2007-09-08 Thread Bob Beers
Where can I learn how to modify request_irq() call when migrating a driver from 2.6.15.x to 2.6.latest? I get this error: warning: passing arg 2 of `request_irq' from incompatible pointer type Thanks, -Bob -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EM

Re: request_irq() change?

2007-09-13 Thread Bob Beers
On 9/8/07, Bob Beers <[EMAIL PROTECTED]> wrote: > Where can I learn how to modify request_irq() call > when migrating a driver from 2.6.15.x to 2.6.latest? > > I get this error: > > warning: passing arg 2 of `request_irq' from incompatible pointer type I guess

Re: Hi all reply plzzzz.....

2008-01-23 Thread Bob Beers
On Jan 23, 2008 12:45 AM, Gaurav Aggarwal <[EMAIL PROTECTED]> wrote: > It is still possible to disable all interrupts locally with > local_save_flags() or local_irq_disable(). A single interrupt can be > disabled globally with disable_irq() Could you expand on that? Which command is preferred in

Re: My output value from IOCTL command doesn`t work

2008-09-17 Thread Bob Beers
On Wed, Sep 17, 2008 at 4:59 AM, Bartek Dolewski <[EMAIL PROTECTED]> wrote: > Hi, > When i fire up this application I can see this message: < secret number for You: 0 and ret: 0>> Of course ret == 0 but why does > my param value equal to zero ? When i look at dmesg output there is > something like