Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\raid6\algos.c Create Date:2022-07-28 07:09:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This code uses the gfmul table as convenient data set to abuse

Proto:int __init raid6_select_algo(void)

Type:int

Parameter:Nothing

231  disks = 65536 / PAGE_SIZE + 2
239  When i < disks - 2 cycle dptrs[i] = Galois field tables + PAGE_SIZE * i
243  syndromes = Common helper functions. Never use with __GFP_HIGHMEM because the returned* address cannot represent highmem pages. Use alloc_pages and then kmap if* you need to access high mem.
245  If Not syndromes Then
246  pr_err("raid6: Yikes! No memory available.\n")
247  Return -ENOMEM
250  dptrs[disks - 2] = syndromes
251  dptrs[disks - 1] = syndromes + PAGE_SIZE
254  gen_best = raid6_choose_gen( & dptrs, disks)
257  rec_best = raid6_choose_recov()
259  free_pages((unsignedlong)syndromes, 1)
261  Return If gen_best && rec_best Then 0 Else -EINVAL