函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\raid6\algos.c Create Date:2022-07-27 08:07:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This code uses the gfmul table as convenient data set to abuse

函数原型:int __init raid6_select_algo(void)

返回类型:int

参数:

231  disks等于65536除PAGE_SIZE加2
239 i小于disks减2循环dptrs[i]等于Galois field tables PAGE_SIZEi
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  如果非syndromes
246  打印错误信息("raid6: Yikes! No memory available.\n")
247  返回:负ENOMEM
250  dptrs[disks - 2]等于syndromes
251  dptrs[disks - 1]等于syndromesPAGE_SIZE
254  gen_best等于raid6_choose_gen( & dptrs, disks)
257  rec_best等于raid6_choose_recov()
259  free_pages((unsignedlong)syndromes, 1)
261  返回:如果gen_bestrec_best则0否则负EINVAL