Changeset 77946 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Mar 29, 2019 3:25:15 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r77945 r77946 1021 1021 * generic_file_sendfile() does. 1022 1022 */ 1023 static ssize_t vbsf_reg_sendfile(struct file *pFile, loff_t *poffFile, size_t cbToSend, read_actor_t pfnActor, void *pvUser) 1023 static ssize_t vbsf_reg_sendfile(struct file *pFile, loff_t *poffFile, size_t cbToSend, read_actor_t pfnActor, 1024 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 8) 1025 void *pvUser 1026 # else 1027 void __user *pvUser 1028 # endif 1029 ) 1024 1030 { 1025 1031 struct inode *inode = VBSF_GET_F_DENTRY(pFile)->d_inode; … … 1078 1084 read_descriptor_t RdDesc; 1079 1085 RdDesc.count = cbToSend; 1086 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 8) 1080 1087 RdDesc.arg.data = pvUser; 1088 # else 1089 RdDesc.buf = pvUser; 1090 # endif 1081 1091 RdDesc.written = 0; 1082 1092 RdDesc.error = 0;
Note:
See TracChangeset
for help on using the changeset viewer.