"Dan Kegel" dank@kegel.com writes:
Back in February, I tried doing this with a real memset, but Alexandre demurred, probably objecting to the slight overhead. So here's a version with no overhead unless you have the Valgrind development headers installed, and is done with Valgrind client notations.
This isn't the right place for this, and pretty much all ioctls have the same potential problem. You should add a valgrind suppress for the whole category of such problems.