函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hib_end_io

函数原型:static void hib_end_io(struct bio *bio)

返回类型:void

参数:

类型参数名称
struct bio *bio
240  hb等于bi_private
241  page等于bio_first_page_all(bio)
243  如果bi_status
244  打印警报信息("Read-error on swap-device (%u:%u:%Lu)\n", MAJOR(bio_dev(bio)), MINOR(bio_dev(bio)), (unsignedlonglong)bi_sector)
249  如果Return the data direction, READ or WRITE.(bio)恒等于WRITEput_page(page)
251  否则如果When reading an {un,}compressed image, we may restore pages in place,* in which case some architectures need these pages cleaning before they* can be executed. We don't know which pages these may be, so clean the lot.flush_icache_range((unsignedlong)page_address(page), (unsignedlong)page_address(page) + PAGE_SIZE)
255  如果bi_status且非errorerror等于bi_status
257  如果atomic_dec_and_test( & count)则wake_up( & wait)
260  bio_put(bio)