Hi Thanks for the reply (jan too). I've tried to use all of your feedback, and I send you the new release of this tut02. regards, Philippe Gilles Chanteperdrix wrote: > trem wrote: > > + mlockall(MCL_CURRENT | MCL_FUTURE); > > Please show people the right way to code, check the return value of > mlockall here. > > > + if (rtdm_safe_copy_to_user(user_info, buf, buffer.data, size)) > > + rtdm_printk("ERROR : can't copy data from driver\n"); > > + > > + /* clean the kernel buffer */ > > + buffer.size = 0; > > + > > + return size; > > Same here, if rtdm_safe_copy_to_user returns an error, return that error > to user-space. > > >