函数逻辑报告 |
Source Code:mm\page_alloc.c |
Create Date:2022-07-27 16:34:43 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Obtain a specified number of elements from the buddy allocator, all under* a single hold of the lock, for efficiency. Add them to the supplied list.* Returns the number of new pages which were placed at *list.
函数原型:static int rmqueue_bulk(struct zone *zone, unsigned int order, unsigned long count, struct list_head *list, int migratetype, unsigned int alloc_flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct zone * | zone | |
| unsigned int | order | |
| unsigned long | count | |
| struct list_head * | list | |
| int | migratetype | |
| unsigned int | alloc_flags |
| 2738 | alloced等于0 |
| 2740 | 加自旋锁 |
| 2742 | page等于Do the hard work of removing an element from the buddy allocator.* Call me with the zone->lock already held. |
| 2744 | 如果此条件成立可能性小(为编译器优化)(page == NULL)则退出 |
| 2760 | 添加链表项 |
| 2761 | alloced自加 |
| 2774 | 自旋锁解锁 |
| 2775 | 返回:alloced |
| 名称 | 描述 |
|---|---|
| __rmqueue_pcplist | Remove page from the per-cpu list, caller must protect the list |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |