|
Hi,
For
me, the major concern is to make the ioctl interface type-safe; i.e., call
the function ddi_model_convert_from() to determine if calling application
is 32-bit or 64-bit, and, add code to convert ioctl data structures where
necessary. (Using fixed-size data structures in the first place can
minimize the conversion effort).
Besides that, the bottom 2/3 of the driver should be compliant with
the DDI in terms of function call parameters, etc. Compile the code with
ddict and/or lint and/or gcc with full warnings to catch something
non-compliant. Beware of typecasts.
Check
the developer web site as in "I/O Peripherals Developer's
Kit".
Best
of luck,
Steve
|