Function report | 
Source Code:mm\page_idle.c | 
Create Date:2022-07-28 16:34:31 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:page_idle_bitmap_read
Proto:static ssize_t page_idle_bitmap_read(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t pos, size_t count)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | file | |
| struct kobject * | kobj | |
| struct bin_attribute * | attr | |
| char * | buf | |
| loff_t | pos | |
| size_t | count | 
| 130 | If pos % BITMAP_CHUNK_SIZE || count % BITMAP_CHUNK_SIZE Then Return -EINVAL | 
| 133 | pfn = pos * BITS_PER_BYTE | 
| 137 | end_pfn = pfn + count * BITS_PER_BYTE | 
| 142 | bit = pfn % BITMAP_CHUNK_BITS | 
| 145 | page = Idle page tracking only considers user memory pages, for other types of* pages the idle flag is always unset and an attempt to set it is silently* ignored | 
| 146 | If page Then | 
| 147 | If page_is_idle(page) Then | 
| 154 | If page_is_idle(page) Then out |= 1ULL << bit | 
| 159 | If bit == BITMAP_CHUNK_BITS - 1 Then out++ | 
| 161 | cond_resched() | 
| 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  |