Hi,
If many ndis miniport drivers are bound to the same protocol driver, will
it be a good idea to use a global variable in the protocol driver source
code to inform the activity of one miniport to the other.
thanks
Raj
Hi,
If many ndis miniport drivers are bound to the same protocol driver, will
it be a good idea to use a global variable in the protocol driver source
code to inform the activity of one miniport to the other.
thanks
Raj
There is no problem in using global (non-paged) variables to do this. Be
sure to consider protecting such data with SpinLocks for SMP operation.
At PCAUSA we have a global linked-list for per-adapter information, with the
list head protected by a spin-lock. As each adapter is opened a per-adapter
structure is allocated and then inserted into the linked-list. Develop
support functions to lookup adapter list entries by adapter handle, etc.
This is a pretty common technique.
Thomas F. Divine
PCAUSA - Tools & Resources For Network Software Developers
NDIS Protocol/Intermediate/Hooking - TDI Client/Filter
http: - http:
“Rajinder Sharma” wrote in message
news:xxxxx@ntdev…
>
> Hi,
> If many ndis miniport drivers are bound to the same protocol driver, will
> it be a good idea to use a global variable in the protocol driver source
> code to inform the activity of one miniport to the other.
>
> thanks
> Raj
>
></http:></http:>