:size - to be malloc'ed. The tail queue holding the newly-
:allocated buffers is a local copy, and not subject to change
:in the event of an interrupt meant for the driver. Given

    If the interrupt scans or in any way accesses the buffer list,
    you have to disable interrupts temporarily using the appropriate
    spl*() calls whenever your non-interrupt code (i.e. the ioctl code)
    makes modifications to the list.  Otherwise the interrupt might
    occur while the list and/or buffers are in an invalid state.

    If that isn't the problem, look for situations where you might 
    be corrupting memory within the driver.  The two most common
    situations are where you accidently leave references to a buffer
    you just freed, or where you overrun a buffer.

:---
:Daniel O'Connor software and network engineer

                                        -Matt
                                        Matthew Dillon 
                                        <[EMAIL PROTECTED]>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to