README_MISSING_SYSCALL_OR_IOCTL
Note that a common error is to call POST_MEM_WRITE( ... )
with 0 (NULL) as the first (address) argument.
This usually means
your logic is slightly inadequate.
It’s a sufficiently common bug
that there’s a built-in check for it, and you’ll get a "probably
sanity check failure" for the syscall wrapper you just made, if this
is the case.
4.
Once happy, send us the patch.
Pretty please.
Writing your own ioctl wrappers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Is pretty much the same as writing syscall wrappers, except that all
the action happens within PRE(ioctl) and POST(ioctl).
There’s a default case, sometimes it isn’t correct and you have to write a
more specific case to get the right behaviour.
As above, please create a bug report and attach the patch as described
on http://www.valgrind.org.
79