| Function report | 
| Source Code: kernel\events\core.c | Create Date:2022-07-28 13:39:08 | 
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:swevent_hlist_get_cpu
Proto:static int swevent_hlist_get_cpu(int cpu)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | cpu | 
| 8786 | swhash = per_cpu(swevent_htable, cpu) | 
| 8787 | err = 0 | 
| 8789 | mutex_lock( & hlist_mutex) | 
| 8794 | hlist = 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). | 
| 8795 | If Not hlist Then | 
| 8801 | hlist_refcount++ | 
| 8802 | exit : | 
| 8805 | Return err | 
| Name | Describe | 
|---|---|
| swevent_hlist_get | 
| 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 |