函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Compression function that runs in its own thread.

函数原型:static int lzo_compress_threadfn(void *data)

返回类型:int

参数:

类型参数名称
void *data
637  d等于data
639  当1循环
640  wait_event - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the*@condition evaluates to true(start compression , atomic_read( & ady to start flag ) || 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().)
643  hread = NULL
644  urn code 等于负1
647  退出
649  atomic_set( & ady to start flag , 0)
651  urn code 等于lzo1x_1_compress(unc, uncompressed length , cmp + We need to remember how much compressed data we need to read. , & compressed length , wrk)
654  atomic_set( & ady to stop flag , 1)
655  wake_up( & compression done )
657  返回:0