Re: Allocating and accessing physically contiguous memory in user mode in WinCE 6.0 Beta



Hi again,

Very interresting discussion...
Is it possible to have a example (pseudo code) of starting a user mode
drivers from kernel
and
how to set protected registry key (syntax)

regards

"Steve Maillet (eMVP)" <nospam1@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%235HpVYd%23GHA.2180@xxxxxxxxxxxxxxxxxxxxxxx
Do you mean that there is no way to allocate and use a physically
contiguous memory region from user mode in 6.0 beta ?
"no way" is a bit strong a phrase and not quite true. It's generally true
for normal processes. However CE 6 supports the concept of User mode
drivers which operate in the context of a user mode process that is
created by the kernel. This process can call the CEDDK functions that do
allocations and hardware access as needed and the kernel will allow the
access to a set of addresses defined by a protected registry key created
by the device OEM. So do what should have been driver level functionality
in your application doesn't really fit the CE6 memory/security model.
However, there is a theoretical alternative that is pretty close. The
process that the kernel starts for user mode drivers is something that
you, the OEM, can specify! Thus you can alter your application to load as
the user mode driver host process and then it ends up with access to the
APIs in CEDDK for mapping hardware etc...


--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com




.



Relevant Pages

  • Re: USB performance bug since kernel 2.6.13 (CRITICAL???)
    ... user mode for this sort of thing. ... kernel mode drivers in this regard. ... Recall that each transaction ...
    (Linux-Kernel)
  • Re: Obsoleteness of X concept
    ... What if we go more further and embed second layer into new kernel ... be exchanged that easily as user mode ... Compare this to the old printer driver model of windows which also had ... kernel mode drivers. ...
    (comp.os.linux.x)
  • Re: GetLastError / SetLastError functionality from inside a driver
    ... world of drivers into a user mode mindset. ... will receive a drivers 101 tutorial via this newsgroup. ... kernel, I would strongly recommend you take a class or two or at a minimum ... For now if you can guide me on how do i send the error code back. ...
    (microsoft.public.development.device.drivers)
  • Re: ACPI Error under 2.6.26-rc*
    ... and attach the rsdp for all of the three cases (good, ACPI Error, ... could you please attach the dmesg output of a 2.6.25.10 kernel which has ... # IPVS transport protocol load balancing support ... # Device Drivers ...
    (Linux-Kernel)
  • init_emergency_isa_pool calling mempool_create in non-sleeping context
    ... I just saw this when booting a current linux-2.6.git kernel. ... # Power management and ACPI options ... # Bus options (PCI etc.) ... # Enable WiMAX to see the WiMAX drivers ...
    (Linux-Kernel)