Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\swap.c Create Date:2022-07-28 10:02:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Deompression function that runs in its own thread.

Proto:static int lzo_decompress_threadfn(void *data)

Type:int

Parameter:

TypeParameterName
void *data
1121  d = data
1123  When 1 cycle
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  Break
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  If clean_pages_on_decompress Then flush_icache_range((unsignedlong)unc, (unsignedlong)unc + uncompressed length )
1142  atomic_set( & ady to stop flag , 1)
1143  wake_up( & decompression done )
1145  Return 0