函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_idle.c Create Date:2022-07-27 18:09:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:page_idle_bitmap_write

函数原型: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)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
struct kobject *kobj
struct bin_attribute *attr
char *buf
loff_tpos
size_tcount
170  in等于buf
175  如果pos取模BITMAP_CHUNK_SIZEcount取模BITMAP_CHUNK_SIZE则返回:负EINVAL
178  pfn等于posBITS_PER_BYTE
179  如果pfn大于等于max_pfn则返回:负ENXIO
182  end_pfn等于pfncountBITS_PER_BYTE
183  如果end_pfn大于max_pfnend_pfn等于max_pfn
186 pfn小于end_pfn循环
187  bit等于pfn取模BITMAP_CHUNK_BITS
188  如果in右移bit位按位与1则
190  如果page
196  如果bit恒等于BITMAP_CHUNK_BITS减1则in自加
198  cond_resched()
200  返回:inbuf