Function report |
Source Code:arch\x86\kernel\cpu\mce\amd.c |
Create Date:2022-07-28 08:03:45 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:threshold_create_bank
Proto:static int threshold_create_bank(unsigned int cpu, unsigned int bank)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | cpu | |
| unsigned int | bank |
| 1305 | dev = per_cpu(mce_device, cpu) |
| 1306 | struct amd_northbridge * nb = NULL |
| 1307 | struct threshold_bank * b = NULL |
| 1309 | err = 0 |
| 1314 | If is_shared_bank(bank) Then |
| 1315 | nb = node_to_amd_nb(amd_get_nb_id(cpu)) |
| 1325 | per_cpu(threshold_banks, cpu)[bank] = b |
| 1328 | err = __threshold_add_blocks(b) |
| 1330 | Go to out |
| 1334 | b = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 1335 | If Not b Then |
| 1341 | If Not kobj Then |
| 1346 | If is_shared_bank(bank) Then |
| 1350 | If nb Then |
| 1360 | per_cpu(threshold_banks, cpu)[bank] = b |
| 1362 | Return 0 |
| 1364 | out_free : |
| 1367 | out : |
| 1368 | Return err |
| Name | Describe |
|---|---|
| mce_threshold_create_device | reate dir/files for all valid threshold banks |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |