Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:threshold_remove_bank

Proto:static void threshold_remove_bank(unsigned int cpu, int bank)

Type:void

Parameter:

TypeParameterName
unsigned intcpu
intbank
1409  b = per_cpu(threshold_banks, cpu)[bank]
1410  If Not b Then Return
1413  If Not blocks Then Go to free_out
1416  If is_shared_bank(bank) Then
1419  per_cpu(threshold_banks, cpu)[bank] = NULL
1420  Return
1421  Else
1427  bank4 = NULL
1431  deallocate_threshold_block(cpu, bank)
1433  free_out :
1434  kobject_del() - Unlink kobject from hierarchy.*@kobj: object.* This is the function that should be called to delete an object* successfully added via kobject_add().
1435  kobject_put() - Decrement refcount for object.*@kobj: object.* Decrement the refcount, and if 0, call kobject_cleanup().
1436  free previously allocated memory
1437  per_cpu(threshold_banks, cpu)[bank] = NULL
Caller
NameDescribe
mce_threshold_remove_device