函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:seq_check_and_advance() - Check an errseq_t and advance to current value

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

返回类型:int

参数:

类型参数名称
errseq_t *eseq
errseq_t *since
176  err等于0
184  old等于READ_ONCE( * eseq)
185  如果old不等于since
198  new等于old按位或This bit is used as a flag to indicate whether the value has been seen
199  如果new不等于oldcmpxchg(eseq, old, new)
201  since等于new
202  err等于负new按位与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.的值
204  返回:err
调用者
名称描述
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