ndis: fix ugly code

Paul B Mahol onemda at gmail.com
Wed Oct 6 03:18:55 UTC 2010


On 10/6/10, Julian Elischer <julian at freebsd.org> wrote:
>   On 10/5/10 5:27 PM, Paul B Mahol wrote:
>> On 10/5/10, Julian Elischer<julian at freebsd.org>  wrote:
>>>    On 10/5/10 1:19 PM, Paul B Mahol wrote:
>>>> Hi,
>>>>
>>>> If clang did not complain, I would probbaly never spot it.
>>>>
>>>> Patch attached.
>>> personally I think you could use kproc_kthread_add so that a single
>>> NDIS process had three threads.
>> Patch attached. Now we have single "ndis" kernel process with own threads.
> I don't know how ndis works. Is it possible that each ndis driver
> would have it's own process? or would each instance?
> I don't even know if it's possible to run two different ndis drivers
> in the same kernel.
> if that was the case we'd want to have a different name for each one
> so you can tell them,
> but I just don't know enough about it.

Nothing have changed in funcionality. We are just using kernel thread
instead of kernel process.


More information about the freebsd-net mailing list