Function report |
Source Code:mm\page_idle.c |
Create Date:2022-07-28 16:34:35 |
| 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_write
Proto:static ssize_t page_idle_bitmap_write(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 |
| 175 | If pos % BITMAP_CHUNK_SIZE || count % BITMAP_CHUNK_SIZE Then Return -EINVAL |
| 178 | pfn = pos * BITS_PER_BYTE |
| 182 | end_pfn = pfn + count * BITS_PER_BYTE |
| 187 | bit = pfn % BITMAP_CHUNK_BITS |
| 189 | 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 |
| 190 | If page Then |
| 196 | If bit == BITMAP_CHUNK_BITS - 1 Then in++ |
| 198 | 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 |