函数逻辑报告 |
Source Code:mm\page_alloc.c |
Create Date:2022-07-27 16:33:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:set_pfnblock_flags_mask - Set the requested group of flags for a pageblock_nr_pages block of pages*@page: The page within the block of interest*@flags: The flags to set*@pfn: The target page frame number*@end_bitidx: The last bit of interest*@mask: mask
函数原型:void set_pfnblock_flags_mask(struct page *page, unsigned long flags, unsigned long pfn, unsigned long end_bitidx, unsigned long mask)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page | |
unsigned long | flags | |
unsigned long | pfn | |
unsigned long | end_bitidx | |
unsigned long | mask |
531 | bitidx等于pfn_to_bitidx(page, pfn) |
533 | bitidx与等于BITS_PER_LONG减1 |
535 | VM_BUG_ON_PAGE(!zone_spans_pfn(page_zone(page), pfn), page) |
537 | bitidx加等于end_bitidx |
538 | mask左移等于BITS_PER_LONG减bitidx减1位 |
539 | flags左移等于BITS_PER_LONG减bitidx减1位 |
541 | word等于READ_ONCE(bitmap[word_bitidx]) |
542 | 循环 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |