Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssize_t uread(struct file *file, char __user *buf, size_t count, loff_t *pos)
- {
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
- return p__vfs_read(file, buf, count, pos);
- #endif
- if (file->f_op->read)
- return file->f_op->read(file, buf, count, pos);
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)
- if (file->f_op->aio_read)
- return do_sync_read(file, buf, count, pos);
- if (file->f_op->read_iter)
- return new_sync_read(file, buf, count, pos);
- return -EINVAL;
- #else
- return do_sync_read(file, buf, count, pos);
- #endif
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement