函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ring_buffer_producer_thread

函数原型:static int ring_buffer_producer_thread(void *arg)

返回类型:int

参数:

类型参数名称
void *arg
403  当非break_test()循环
404  g_buffer_reset - reset a ring buffer*@buffer: The ring buffer to reset all cpu buffers
406  如果consumer
411  ring_buffer_producer()
412  如果break_test()则转到:out_kill
415  trace_printk("Sleeping for 10 secs\n")
416  set_current_state(睡眠态)
417  如果break_test()则转到:out_kill
419  schedule_timeout - sleep until timeout*@timeout: timeout value in jiffies* Make the current task sleep until @timeout jiffies have* elapsed
422  out_kill :
423  set_current_state() includes a barrier so that the write of current->state* is correctly serialised wrt the caller's subsequent test of whether to* actually sleep:* for (;;) {* set_current_state(TASK_UNINTERRUPTIBLE);* if (!need_sleep)* break;* (就绪态)
424  如果非kthread_should_stop - should this kthread return now?* When someone calls kthread_stop() on your kthread, it will be woken* and this will return true. You should then return, and your return* value will be passed through to kthread_stop().wait_to_die()
427  返回:0