函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:int

参数:

类型参数名称
void *data
593  d等于data
596  当1循环
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  退出
605  atomic_set( & ady to start flag , 0)
607 i小于r current threads 循环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  返回:0