Re: IoAllocateMdl call in WinCE 5.0.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
> > );
> >
> >
> >
>
>


.



Relevant Pages

  • Re: [PATCH] tracing/ftrace: stop {irqs,preempt}soff tracers when tracing is stopped
    ... Hardware name: System Product Name ... # IPVS transport protocol load balancing support ... # AX.25 network device drivers ... # Generic Driver Options ...
    (Linux-Kernel)
  • Re: [tip:core/rcu] rcu: Add diagnostic check for a possible CPU-hotplug race
    ... I am testing the right kernel version. ... # CAN Device Drivers ... # You can enable one or both FireWire driver stacks. ...
    (Linux-Kernel)
  • Re: Adding custom Hardware support for WinCE 6.0
    ... proper calls and put the right registry entries in the OS to get the driver ... Device drivers are loaded by the operating system during boot by ... "walking" through certain keys in the registry. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Modularize kernel
    ... One of the biggest concerns I have with moving towards a heavily modularized default kernel is that we may find we need to explore improving our automatic loading of modules. ... For example, if we want to de-populate the base kernel with respect to device drivers, which take up quite a lot of space, we'll want to look both at how to handle early boot, and later loading if hardware turns up -- issues we've largely avoided by virtue of compiling them in. ... I'm not sure I have a clear understanding of the requirements from the device driver side -- on the general service side, it's fairly straight forward because you simply say "If you want this service, load this module", or in the case of management tools, the module is loaded on demand by the management tool. ...
    (freebsd-arch)
  • Re: Linux development kit
    ... where I can play around developing my own device drivers for Ethernet, ... Have you ever felt teased when driver developers of other operating ... WA, USA, I'm proud to announce the first release of the Linux Device ...
    (comp.os.linux.embedded)