add comment to explain kernel_read
This commit is contained in:
parent
0af5a76743
commit
ba3ae093ed
1 changed files with 2 additions and 0 deletions
|
|
@ -312,6 +312,8 @@ static ssize_t ashmem_read(struct file *file, char __user *buf,
|
|||
* once asma->file is set it will never be changed, and will not
|
||||
* be destroyed until all references to the file are dropped and
|
||||
* ashmem_release is called.
|
||||
*
|
||||
* kernel_read supersedes vfs_read from kernel version 3.9
|
||||
*/
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)
|
||||
ret = __vfs_read(asma->file, buf, len, pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue