Function report | 
Source Code:kernel\dma\debug.c | 
Create Date:2022-07-28 10:35:02 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:dma_debug_init
Proto:static int dma_debug_init(void)
Type:int
Parameter:Nothing
| 934 | If Global disable flag - will be set in case of an error Then Return 0 | 
| 942 | dma_debug_fs_init() | 
| 944 | nr_pages = DIV_ROUND_UP(umber of preallocated entries requested by kernel cmdline , If the pool runs out, add this many new entries at once ) | 
| 945 | When i < nr_pages cycle dma_debug_create_entries(GFP_KERNEL) | 
| 948 | pr_info("preallocated %d debug entries\n", nr_total_entries) | 
| 949 | Else if num_free_entries > 0 Then | 
| 950 | pr_warn("%d debug entries requested but only %d allocated\n", umber of preallocated entries requested by kernel cmdline , nr_total_entries) | 
| 952 | Else | 
| 953 | pr_err("debugging out of memory error - disabled\n") | 
| 956 | Return 0 | 
| 962 | pr_info("debugging enabled by kernel config\n") | 
| 963 | Return 0 | 
| 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  |