函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:seq_check() - Has an error occurred since a particular sample point?*@eseq: Pointer to errseq_t value to be checked.*@since: Previously-sampled errseq_t from which to check.* Grab the value that eseq points to, and see if it has changed @since

函数原型:int errseq_check(errseq_t *eseq, errseq_t since)

返回类型:int

参数:

类型参数名称
errseq_t *eseq
errseq_tsince
146  cur等于READ_ONCE( * eseq)
148  如果此条件成立可能性大(为编译器优化)(cur == since)则返回:0
150  返回:负cur按位与Kernel pointers have redundant information, so we can use a* scheme where we can return either an error code or a normal* pointer with the same return value.* This should be a per-architecture thing, to allow different* error and pointer decisions.的值
调用者
名称描述
file_check_and_advance_wb_errle_check_and_advance_wb_err - report wb error (if any) that was previously* and advance wb_err to current one*@file: struct file on which the error is being reported* When userland calls fsync (or something like nfsd does the equivalent), we* want to