copy_to_user
if (copy_to_user((u32*)arg, &val, sizeof(u32)))
ret = copy_to_user(buf, ring->pages[idx], nread);