Tech Support > Microsoft Windows > Drivers > Internal Device I/O Control question
Internal Device I/O Control question
Posted by hammerli22 on September 27th, 2007


Can drivers issue internal device i/o control requests ? I thought they were
allowed.
I found this sentence in the WDF book confusing.

Does this mean that as a driver i cannot open a remote i/o target and issue
a internal device i/o control call ?

Page 226, Paragraph

"Kernel-mode components can also define and use internal device i/o control
requests... User-mode applications and drivers cannot issue internal device
I/O control requests."

thanks
-M

Posted by Don Burn on September 27th, 2007


Yes a kernel mode driver can use an internal device i/o control, but
remember the WDF book covers KMDF and UMDF the latter stands for User Mode
Driver Framework, and those user mode drivers cannot.

--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply



"hammerli22" <hammerli22@discussions.microsoft.com> wrote in message
news:4B4ADE6D-19A2-4831-838F-7B0E5109CF4E@microsoft.com...


Posted by Tim Roberts on September 29th, 2007


"Don Burn" <burn@stopspam.windrvr.com> wrote:
Is that right? A UMDF driver actually participates in the device stack via
a kernel-mode proxy. I would have guessed that internal ioctls were fine.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Posted by Don Burn on September 29th, 2007


Tim,

The OP's question was about issuing an internal in the general case,
AFAIK that is not possible from user space. There are restrictions on
IOCTL's in the UMDF model another example is that METHOD_NEITHER IOCTL's
cannot be processed.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply


"Tim Roberts" <timr@probo.com> wrote in message
news:qpprf3d3va4cuie75l5hcg78fms1804a21@4ax.com...


Posted by Doron Holan [MSFT] on October 2nd, 2007


internal ioctls are not allowed b/c they are a km only io contract and it is
impossible to marshal them sanely

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Tim Roberts" <timr@probo.com> wrote in message
news:qpprf3d3va4cuie75l5hcg78fms1804a21@4ax.com...