Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fei_retval_set

Proto:static int fei_retval_set(void *data, u64 val)

Type:int

Parameter:

TypeParameterName
void *data
u64val
109  attr = data
110  retv = val
111  err = 0
113  mutex_lock( & fei_lock)
119  If Not fei_attr_is_valid(attr) Then
120  err = -ENOENT
121  Go to out
124  If location of the probe point Then
125  If adjust_error_retval((unsignedlong) location of the probe point , val) != retv Then err = -EINVAL
129  If Not err Then retval = val
131  out :
132  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
134  Return err