Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:seq_set - set a errseq_t for later reporting*@eseq: errseq_t field that should be set*@err: error to set (must be between -1 and -MAX_ERRNO)* This function sets the error in @eseq, and increments the sequence counter

Proto:errseq_t errseq_set(errseq_t *eseq, int err)

Type:errseq_t

Parameter:

TypeParameterName
errseq_t *eseq
interr
63  BUILD_BUG_ON_NOT_POWER_OF_2(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. + 1)
71  old = READ_ONCE( * eseq)
73  If WARN(Value for the false possibility is greater at compile time(err == 0 || (unsignedint) - err > 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.), "err = %d\n", err) Then Return old
77  cycle
81  new = old & ~(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. | This bit is used as a flag to indicate whether the value has been seen ) | -err
84  If old & This bit is used as a flag to indicate whether the value has been seen Then new += The lowest bit of the counter
88  If new == old Then
89  cur = new
90  Break
94  cur = cmpxchg(eseq, old, new)
100  If Value is more likely to compile time(cur == old || cur == new) Then Break
104  old = cur
106  Return cur
Caller
NameDescribe
dio_warn_stale_pagecacheWarn about a page cache invalidation failure during a direct I/O write.