Re: IoAllocateMdl call in WinCE 5.0.
- From: "Kimo Jolin" <kimojolin@xxxxxxxxx>
- Date: Mon, 13 Jun 2005 13:33:24 -0700
Yes, I saw the function is defined in wdm.h and used by 1394 device driver.
If those APIs can be used by 1394 driver, how come it cannot be called by
other device drivers? WinCE 5.0 device drivers are all loaded by
DM(device.exe). Can you tell me why those APIs cannot be called by other
drivers?
"David Liao (MS)" <davli@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23PfBlD%23bFHA.2128@xxxxxxxxxxxxxxxxxxxxxxx
> The Function you mention should only be use by 1394 driver which run under
> wdevice.exe. Other than that, no other driver should use this function
> because they run under device.exe
>
> The function you use is WDM driver function, it should not be used unless
> you are writting 1394 on CE 5.0.
>
> David Liao
> "Kimo Jolin" <kimojolin@xxxxxxxxx> wrote in message
> news:%23ODlIqwbFHA.1040@xxxxxxxxxxxxxxxxxxxxxxx
> > In WinCE 5.0, I made the following call to allocate a MDL. If you
search
> > the include file directory, you can find a file named WDM.H defining
this
> > function. However, during the kernel image linking phase, this library
> > was
> > not found. Is this function supported by WinCE 5.0. If it is not
supported
> > by WinCE 5.0, how come Microsoft shipped include those functions in its
> > product?
> >
> >
> > IoAllocateMdl
> > The IoAllocateMdl routine allocates an MDL large enough to map a buffer,
> > given its starting address and length. Optionally, this routine
associates
> > the MDL with an IRP.
> > PMDL
> > IoAllocateMdl(
> > IN PVOID VirtualAddress,
> > IN ULONG Length,
> > IN BOOLEAN SecondaryBuffer,
> > IN BOOLEAN ChargeQuota,
> > IN OUT PIRP Irp OPTIONAL
> > );
> >
> >
> >
>
>
.
- Follow-Ups:
- Re: IoAllocateMdl call in WinCE 5.0.
- From: David Liao \(MS\)
- Re: IoAllocateMdl call in WinCE 5.0.
- References:
- IoAllocateMdl call in WinCE 5.0.
- From: Kimo Jolin
- Re: IoAllocateMdl call in WinCE 5.0.
- From: David Liao \(MS\)
- IoAllocateMdl call in WinCE 5.0.
- Prev by Date: getenv() function
- Next by Date: Re: How to debug a device driver on a PPC?
- Previous by thread: Re: IoAllocateMdl call in WinCE 5.0.
- Next by thread: Re: IoAllocateMdl call in WinCE 5.0.
- Index(es):
Relevant Pages
|