Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mce_gen_pool_add

Proto:int mce_gen_pool_add(struct mce *mce)

Type:int

Parameter:

TypeParameterName
struct mce *mce
101  If filter_mce(mce) Then Return -EINVAL
104  If Not mce_evt_pool Then Return -EINVAL
107  node = gen_pool_alloc - allocate special memory from the pool*@pool: pool to allocate from*@size: number of bytes to allocate from the pool* Allocate the requested number of bytes from the specified pool.
108  If Not node Then
109  pr_warn_ratelimited("MCE records pool full!\n")
110  Return -ENOMEM
113  memcpy( & mce, mce, size of mce )
114  llist_add - add a new entry*@new: new entry to be added*@head: the head for your lock-less list* Returns true if the list was empty prior to adding this entry.
116  Return 0
Caller
NameDescribe
machine_check_pollPoll for corrected events or events that happened before reset.* Those are just logged through /dev/mcelog.* This is executed in standard interrupt context.* Note: spec recommends to panic for fatal unsignalled* errors here