| Function report | 
| Source Code: kernel\padata.c | Create Date:2022-07-28 13:47:36 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Allocate and initialize the internal cpumask dependend resources.
Proto:static struct parallel_data *padata_alloc_pd(struct padata_shell *ps)
Type:struct parallel_data
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct padata_shell * | ps | 
| 439 | pd = 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). | 
| 443 | pqueue = alloc_percpu(structpadata_parallel_queue) | 
| 444 | If Not pqueue Then Go to err_free_pd | 
| 447 | squeue = alloc_percpu(structpadata_serial_queue) | 
| 448 | If Not squeue Then Go to err_free_pqueue | 
| 452 | If pd_setup_cpumasks(pd, pcpumask, cbcpumask) Then Go to err_free_squeue | 
| 457 | atomic_set( & seq_nr, - 1) | 
| 458 | atomic_set( & reorder_objects, 0) | 
| 459 | atomic_set( & refcnt, 1) | 
| 460 | Process spin lock initialization( & lock) | 
| 462 | INIT_WORK( & reorder_work, invoke_padata_reorder) | 
| 464 | Return pd | 
| 466 | err_free_squeue : | 
| 468 | err_free_pqueue : | 
| 470 | err_free_pd : | 
| 472 | err : | 
| 473 | Return NULL | 
| Name | Describe | 
|---|---|
| padata_replace_one | Replace the internal control structure with a new one. | 
| padata_alloc_shell | padata_alloc_shell - Allocate and initialize padata shell.*@pinst: Parent padata_instance object. | 
| 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 |