函数逻辑报告 |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-27 13:01:08 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:g_buffer_alloc_read_page - allocate a page to read from buffer*@buffer: the buffer to allocate for
函数原型:void *ring_buffer_alloc_read_page(struct ring_buffer *buffer, int cpu)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ring_buffer * | buffer | |
int | cpu |
4596 | struct buffer_data_page * bpage = NULL |
4603 | cpu_buffer等于buffers[cpu] |
4604 | local_irq_save(flags) |
4605 | r sched/core.c and kernel_lock.c: ( & lock) |
4607 | 如果free_page则 |
4612 | arch_spin_unlock( & lock) |
4613 | local_irq_restore(flags) |
4618 | page等于Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online. |
4623 | bpage等于page_address(page) |
4625 | out : |
4626 | rb_init_page(bpage) |
4628 | 返回:bpage |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |