| Function report | 
| Source Code: kernel\power\user.c | Create Date:2022-07-28 10:03:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:snapshot_compat_ioctl
Proto:static long snapshot_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | file | |
| unsigned int | cmd | |
| unsigned long | arg | 
| 410 | Case cmd == SNAPSHOT_GET_IMAGE_SIZE | 
| 411 | Case cmd == SNAPSHOT_AVAIL_SWAP_SIZE | 
| 412 | Case cmd == SNAPSHOT_ALLOC_SWAP_PAGE | 
| 420 | err = snapshot_ioctl(file, cmd, (unsignedlong) & offset) | 
| 424 | Return err | 
| 427 | Case cmd == SNAPSHOT_CREATE_IMAGE | 
| 431 | Case cmd == SNAPSHOT_SET_SWAP_AREA | 
| 438 | err = Get a simple variable from user space(offset, & offset) | 
| 439 | err |= Get a simple variable from user space(dev, & dev) | 
| 444 | err = snapshot_ioctl(file, SNAPSHOT_SET_SWAP_AREA, (unsignedlong) & swap_area) | 
| 447 | Return err | 
| 450 | Default | 
| 451 | Return snapshot_ioctl(file, cmd, arg) | 
| 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 |