in reply to Custom ioctl on Linux?

You're probably "Suffering from buffering". Plus the recommendataion is not to mix the sys* functions with the regular versions.

What do you get if you rewrite your print statement using syswrite() instead?

Update: Nevermind, I thought you were using print to write to the driver...