Function report | 
Source Code:kernel\trace\ring_buffer.c | 
Create Date:2022-07-28 11:55:32 | 
| Last Modify:2020-03-17 19:30:04 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:d_buffer_empty - is the ring buffer empty?*@buffer: The ring buffer to test
Proto:bool ring_buffer_empty(struct ring_buffer *buffer)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct ring_buffer * | buffer | 
| 4460 | for_each_buffer_cpu(buffer, cpu) | 
| 4461 | cpu_buffer = buffers[cpu] | 
| 4462 | local_irq_save(flags) | 
| 4463 | dolock = rb_reader_lock(cpu_buffer) | 
| 4464 | ret = rb_per_cpu_empty(cpu_buffer) | 
| 4465 | rb_reader_unlock(cpu_buffer, dolock) | 
| 4466 | local_irq_restore(flags) | 
| 4468 | If Not ret Then Return false | 
| 4472 | Return true | 
| Name | Describe | 
|---|---|
| ring_buffer_wait | g_buffer_wait - wait for input to the ring buffer*@buffer: buffer to wait on*@cpu: the cpu buffer to wait on*@full: wait until a full page is available, if @cpu != RING_BUFFER_ALL_CPUS* If @cpu == RING_BUFFER_ALL_CPUS then the task will wake up as soon | 
| ring_buffer_poll_wait | g_buffer_poll_wait - poll on buffer input*@buffer: buffer to wait on*@cpu: the cpu buffer to wait on*@filp: the file descriptor*@poll_table: The poll descriptor* If @cpu == RING_BUFFER_ALL_CPUS then the task will wake up as soon | 
| 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  |