Hi All,
I have written an character device driver and add IOCTL code into the
driver. The only functionality that IOCTL provides is dumping the device
structure properties in the user specified buffer. Now I would like to write
an user application to test the driver. I am not sure how to include the
defined IOCTL into the application code (as I have used _IOXX macros to
create the IOCTLS and my driver perform checks for MAGIC number and etc.).
I tried defining IOCTLs as simple integer values and remove MAGIC number
checks in my driver things looks good from application but I am looking for
right way of implementing IOCTL in linux device driver.
Any pointers on this will be really helpful.
Regards,
Vipul.| Amit K. Arora | [RFC] Heads up on sys_fallocate() |
| Linus Torvalds | Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series.. |
| Paul Jackson | Re: cpuset-remove-sched-domain-hooks-from-cpusets |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| Linus Torvalds | Re: [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [klibc] [patch] import socket defines |
