| Function report | 
| Source Code: mm\vmalloc.c | Create Date:2022-07-28 15:00:29 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:small helper routine , copy contents to buf from addr.* If the page is not present, fill zero.
Proto:static int aligned_vread(char *buf, char *addr, unsigned long count)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| char * | buf | |
| char * | addr | |
| unsigned long | count | 
| 2818 | copied = 0 | 
| 2823 | offset = offset_in_page(addr) | 
| 2835 | If p Then | 
| 2840 | map = kmap_atomic(p) | 
| 2841 | No 3D Now!(buf, map + offset, length) | 
| 2851 | Return copied | 
| Name | Describe | 
|---|---|
| vread | vread() - read vmalloc area in a safe way.*@buf: buffer for reading data*@addr: vm address.*@count: number of bytes to be read.* This function checks that addr is a valid vmalloc'ed area, and* copy data from that area to a given buffer | 
| 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 |