Tech Support > Microsoft Windows > Drivers > pIsochDetachData->AttachStatus
pIsochDetachData->AttachStatus
Posted by min on January 30th, 2008


In the 1394 kmdf sample driver in WDK6000,

the function 't1394_IsochAttachBuffers' uses a variable pIsochDetachData.

---------------------------------------------------------------------------------------
// need to save hResource, numDescriptors and Request to use when detaching.

// this needs to be done before we submit the irp, since the isoch callback

// can be called before the submitirpsynch call completes.

PISOCH_DETACH_DATA pIsochDetachData;

pIsochDetachData = ExAllocatePoolWithTag(NonPagedPool,

sizeof(ISOCH_DETACH_DATA),

POOLTAG_1394);

---------------------------------------------------------------------------------------------------------------------------------



PISOCH_DETACH_DATA is defined as

---------------------------------------------------------------------------------------------------------------------------------

typedef struct _ISOCH_DETACH_DATA {

LIST_ENTRY IsochDetachList;

PDEVICE_EXTENSION DeviceExtension;

PISOCH_DESCRIPTOR IsochDescriptor;

WDFREQUEST Request;

PIRP newIrp;

PIRB DetachIrb;

PIRB AttachIrb;

NTSTATUS AttachStatus;

KTIMER Timer;

KDPC TimerDpc;

HANDLE hResource;

ULONG numIsochDescriptors;

ULONG outputBufferLength;

ULONG bDetach;

} ISOCH_DETACH_DATA, *PISOCH_DETACH_DATA;

---------------------------------------------------------------------------------------------------------------------------------



What exactly says the NTSTATUS value 'AttachStatus' from pIsochDetachData?

It seems, it gets already a value direct after calling 'ExAllocatePoolWithTag'...


thanks in advance
min