Following the recent discussion on recycling NDIS spinlocks, I've looked
for API to free the WDK timer, but could not find it.

Is there a function to "free" or "uninitialize" a timer created
by WdfSpinLockCreate ?

Back to NDIS 5/6: what is the function (or macro) to "free" a timer
created with NdisMInitializeTimer or NdisInitializeTimer ?

Regards,
--PA

Re: What is reverse of WdfSpinLockCreate ? by Eliyas

Eliyas
Mon Jan 30 10:06:26 CST 2006

WDF doesn't have a object specific delete function. All objects can be
deleted using generic WdfObjectDelete function.

>
> Back to NDIS 5/6: what is the function (or macro) to "free" a timer
> created with NdisMInitializeTimer or NdisInitializeTimer ?
>

None. Cancel the timer and call NdisMInitializeTimer to reinitialize the
memory with something else.



Re: What is reverse of WdfSpinLockCreate ? by Doron

Doron
Mon Jan 30 11:08:17 CST 2006

let's take a step back for a second about object deletion in KMDF. If you
specfy the ParentObject in WDF_OBJECT_ATTRIBUTES, the object you are
creating will be automatically destroyed when the parent object goes away.
for instance, if you are creating a WDFSPINLOCK and set the parent object to
your WDFDEVICE, the lock is automatically deleted when the WDFDEVICE is
deleted.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Eliyas Yakub [MSFT]" <eliyasy@online.microsoft.com> wrote in message
news:ORxfPcbJGHA.648@TK2MSFTNGP14.phx.gbl...
> WDF doesn't have a object specific delete function. All objects can be
> deleted using generic WdfObjectDelete function.
>
>>
>> Back to NDIS 5/6: what is the function (or macro) to "free" a timer
>> created with NdisMInitializeTimer or NdisInitializeTimer ?
>>
>
> None. Cancel the timer and call NdisMInitializeTimer to reinitialize the
> memory with something else.
>