函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:int

参数:

类型参数名称
void *data
1121  d等于data
1123  当1循环
1124  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 decompression , 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().)
1127  hread = NULL
1128  urn code 等于负1
1131  退出
1133  atomic_set( & ady to start flag , 0)
1135  uncompressed length 等于LZO_UNC_SIZE
1136  urn code 等于lzo1x_decompress_safe(cmp + We need to remember how much compressed data we need to read. , compressed length , unc, & uncompressed length )
1138  如果clean_pages_on_decompressflush_icache_range((unsignedlong)unc, (unsignedlong)unc + uncompressed length )
1142  atomic_set( & ady to stop flag , 1)
1143  wake_up( & decompression done )
1145  返回:0