Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:CRC32 update function that runs in its own thread.

Proto:static int crc32_threadfn(void *data)

Type:int

Parameter:

TypeParameterName
void *data
593  d = data
596  When 1 cycle
597  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 crc update , 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().)
600  hread = NULL
603  Break
605  atomic_set( & ady to start flag , 0)
607  When i < r current threads cycle points to handle's crc32 = crc32_le( * points to handle's crc32 , uncompressed data [i], * uncompressed lengths [i])
610  atomic_set( & ady to stop flag , 1)
611  wake_up( & crc update done )
613  Return 0