Function report | 
Source Code:fs\read_write.c | 
Create Date:2022-07-28 20:01:22 | 
| Last Modify:2020-03-18 10:18:51 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:w_copy_check_uvector() - Copy an array of &struct iovec from userspace* into the kernel and check that it is valid.*@type: One of %CHECK_IOVEC_ONLY, %READ, or %WRITE.*@uvector: Pointer to the userspace array.
Proto:ssize_t rw_copy_check_uvector(int type, const struct iovec __user *uvector, unsigned long nr_segs, unsigned long fast_segs, struct iovec *fast_pointer, struct iovec **ret_pointer)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | type | |
| const struct iovec __user * | uvector | |
| unsigned long | nr_segs | |
| unsigned long | fast_segs | |
| struct iovec * | fast_pointer | |
| struct iovec ** | ret_pointer | 
| 771 | iov = fast_pointer | 
| 778 | If nr_segs == 0 Then | 
| 787 | If nr_segs > UIO_MAXIOV Then | 
| 792 | iov = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). | 
| 793 | If (iov == NULL) Then | 
| 798 | If copy_from_user(iov, uvector, nr_segs * size of uvector ) Then | 
| 812 | ret = 0 | 
| 815 | len = Must be size_t (1003.1g) | 
| 819 | If len < 0 Then | 
| 828 | If len > MAX_RW_COUNT - ret Then | 
| 829 | len = MAX_RW_COUNT - ret | 
| 830 | Must be size_t (1003.1g) = len | 
| 834 | out : | 
| 835 | ret_pointer = iov | 
| 836 | Return ret | 
| Name | Describe | 
|---|---|
| import_iovec | mport_iovec() - Copy an array of &struct iovec from userspace* into the kernel, check that it is valid, and initialize a new* &struct iov_iter iterator to access it.*@type: One of %READ or %WRITE.*@uvector: Pointer to the userspace array. | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |