Re: adding another ioctl



Generally, if everything was done correctly, the changes you described
should be enough.

Check your code against this manual,
http://codeproject.com/KB/system/driverdev2.aspx and if it does not help,
come back to us with more details.

--
Volodymyr
NG tips:
http://msmvps.com/blogs/v_scherbina/pages/microsoft-newsgroups-tips.aspx

"qwert" <qwert@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FAB7CD35-604F-493E-97DD-03AC5502B1BC@xxxxxxxxxxxxxxxx
I wanted to support an additional IOCTL in my driver.
I have done the following steps:
1. I have called the Deviceiocontrol with the new IOCTL in the application
2. Modified the * .h file to add new IOCTL. following is the added bit.
#define IOCTL_SIOCTL_TRIAL_COMMAND \
CTL_CODE( SIOCTL_TYPE, 0x904, METHOD_BUFFERED , FILE_ANY_ACCESS )
3.I have supported this IOCTL in my Dispatch routine.

when I run the application I see "unrecognised IOCTL" in debugview window.
I get an application errror:1(Error_Invalid_function )
Let me know if there are any other changes to be done in the code.anyother
support??
I think I have done all the steps.But it is not hitting the control
codeinstead it goes to the default case where "unrecognised IOCTL" appears
The drivercode and the application code is sioctl(in wdk).
Thanks in advance





.



Relevant Pages

  • Re: BLKFLSBUF failed???
    ... What is causing this and how do I fix it? ... Lack of support for that ioctl is "causing" it (horrible choice of word ...
    (alt.os.linux)
  • Re: [RFC] What are the goals for the architecture of an in-kernel IR system?
    ... cx23885-input.c support with RC-5, and soon NEC support, in kernel. ... The LIRC ioctls() wanting to change one parameter at a time will ... The idea is that you set up the IR hardware infrequently and spend most ... I was planning on a lirc_v4l module aggregating all the lirc_dev ioctl ...
    (Linux-Kernel)
  • Re: SetCommState() fails with "A device attached to the system is not functioning"
    ... IOCTL codes required. ... If it would fail to support one of these, ... It sounds like the fix is not in SetCommState, but in the device driver ... The driver is the standard usbser.sys (USB serial port driver ...
    (microsoft.public.vc.mfc)
  • Re: adding another ioctl
    ... "Volodymyr Shcherbyna" wrote: ... Modified the * .h file to add new IOCTL. ... when I run the application I see "unrecognised IOCTL" in debugview window. ...
    (microsoft.public.development.device.drivers)
  • Re: RFC: ATA to CAM integration patch
    ... cdrecord: Inappropriate ioctl for device. ... Cannot open SCSI driver. ... this driver and/or drive does not support cdda reading. ...
    (freebsd-current)

Loading