Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\apei.c Create Date:2022-07-28 08:04:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:apei_read_mce

Proto:ssize_t apei_read_mce(struct mce *m, u64 *record_id)

Type:ssize_t

Parameter:

TypeParameterName
struct mce *m
u64 *record_id
108  rc = erst_get_record_id_begin( & pos)
109  If rc Then Return rc
111  retry :
112  rc = erst_get_record_id_next( & pos, record_id)
113  If rc Then Go to out
116  If record_id == APEI_ERST_INVALID_RECORD_ID Then Go to out
118  rc = erst_read( * record_id, & hdr, size of rcd )
120  If rc == -ENOENT Then Go to retry
122  Else if rc < 0 Then Go to out
125  Else if rc != size of rcd || Not guid_equal( & creator_id, & CPER_CREATOR_MCE) Then Go to retry
128  memcpy(m, & mce, size of m )
129  rc = size of m
130  out :
131  erst_get_record_id_end()
133  Return rc