2010.01.13 I wrote this to return both xtime and ktime via do_gettimeofday. I don't understand the difference. 2010.01.13 Wow. Again it worked out of the box! copy_to_user and the whole lot. Note: copy_to_user does the access_ok (the old verify_area). 2010.01.13 First attempt to return a struct through a reference parameter Derived from an earlier failure to return a struct on the stack. See notes below. 2010.01.13 NOTE NOTE Returning struct won't work because syscall returns a long and so I get a type incompatability trying to return a struct. The return value of syscall (or system calls in general) is really only for error messages. 2010.01.13 This program derived from mod-syscall-xtimefun but now return an xtime struct on the stack instead of just a long xtime.tv_sec.