[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-atm
Subject:    RE: linux-atm and socket buffers
From:       "Carlson, Kristen" <kristen.carlson () intel ! com>
Date:       2000-12-18 22:38:44
[Download RAW message or body]

Hi Jeff,
Make sure that you actually have a vcc->push routine available to you first.
If vcc->push is NULL, then you would have to free the skb yourself.
Kristen


-----Original Message-----
From: Jeff Harrell [mailto:jharrell@ti.com]
Sent: Monday, December 18, 2000 12:10 PM
To: linux-atm@lrc.di.epfl.ch
Subject: linux-atm and socket buffers


   I am currently working on a ATM driver for a 2.4 linux kernel
(2.4.0-test9).  I  allocate a socket buffer within my  receive interrupt
routine and fill the buffer with my
received data.  Upon finishing of the necessary processing I do a
vcc->push(vcc,skb) to pass the skb to the
protocol.  I have a userland routine that is writing to the driver but
not reading from it (my device
is looped back).  When I go to remove the module I get a segmentation
fault.  Is this due to the socket
buffer never being read and my module being removed?  If I never
allocate the skb (i.e. essentially
stub out my rx irq routine), I can unload the module with no
problems....  Is there something that I
need to do to fix this upon removing my module?  Any insights would be
greatly appreciated...

Thanks,
Jeff Harrell

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Harrell                    Work:  (801) 619-6104
Broadband Access group/TI
jharrell@ti.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic