Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hib_end_io

Proto:static void hib_end_io(struct bio *bio)

Type:void

Parameter:

TypeParameterName
struct bio *bio
240  hb = bi_private
241  page = bio_first_page_all(bio)
243  If bi_status Then
244  pr_alert("Read-error on swap-device (%u:%u:%Lu)\n", MAJOR(bio_dev(bio)), MINOR(bio_dev(bio)), (unsignedlonglong)bi_sector)
249  If Return the data direction, READ or WRITE.(bio) == WRITE Then put_page(page)
251  Else if 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. Then flush_icache_range((unsignedlong)page_address(page), (unsignedlong)page_address(page) + PAGE_SIZE)
255  If bi_status && Not error Then error = bi_status
257  If atomic_dec_and_test( & count) Then wake_up( & wait)
260  bio_put(bio)