Re: GetCurrentProcessorNumber() for XP?



"frank" <frank@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:C21625F3-41CD-448B-91CF-C71DFB1EE9F5@xxxxxxxxxxxxxxxx
why not writing a little helper driver (the old style - not that wdm/kmdf
stuff), that does the KeGetCurrentProcessorNumber() call in a read request
(or ioctl) if he wants to know the number in ring3 ?

Because of the high overhead of kernel call.

--PA


.



Relevant Pages

  • [RFC] Re: [PATCH 4/4] autofs4 - add miscelaneous device for ioctls
    ... We seem to be passing some string into a misc-device ioctl and getting some ... I'm not aware of what the netlink interface may be ... completion of the original ioctl expire request. ...
    (Linux-Kernel)
  • Re: Driver verifier cause SYSTEM_SERVICE_EXCEPTION
    ... a request that has a cancel routine assigned to it (e.g. you called ... An exception happened while executing a system service routine. ... The problem is that when the driver receives its first IOCTL and it is ... to complete or even forward this request a BSOD is reported. ...
    (microsoft.public.development.device.drivers)
  • Re: Get service from a user mode application/ service
    ... The typical problem here is that you need more than one ... speed increase by good development of the IOCTL approach. ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... From user mode I send an IOCTRL request to driver. ...
    (microsoft.public.development.device.drivers)
  • Re: [PATCH] IDE: Fix HDIO_DRIVE_RESET handling
    ... request in an illegal way which may very likely lead to system lock ups. ... of the reason for the ioctl anyway (and you might as well just remove it ... alternative to the out of band approach for the purposes you described. ... neither of them got it then a speed changedown raced the lot 8( ...
    (Linux-Kernel)
  • Re: How user wait for kernel?
    ... My kernel IOCTL function call ... than my IOCTL function will return to user. ... have your IOCTL's put into a cancel safe queue (if this is WDF the ... user, until I completed request, isn't it? ...
    (microsoft.public.development.device.drivers)