Function report |
Source Code:arch\x86\kernel\ksysfs.c |
Create Date:2022-07-28 07:42:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:create_setup_data_nodes
Proto:static int __init create_setup_data_nodes(struct kobject *parent)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct kobject * | parent |
286 | ret = 0 |
288 | pa_data = setup_data |
289 | If Not pa_data Then Return 0 |
293 | If Not setup_data_kobj Then |
298 | ret = get_setup_data_total_num(pa_data, & nr) |
299 | If ret Then Go to out_setup_data_kobj |
302 | kobjp = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
303 | If Not kobjp Then |
305 | Go to out_setup_data_kobj |
309 | ret = create_setup_data_node(setup_data_kobj, kobjp + i, i) |
310 | If ret Then Go to out_clean_nodes |
315 | Return 0 |
317 | out_clean_nodes : |
318 | When j >= 0 cycle cleanup_setup_data_node( * (kobjp + j)) |
321 | out_setup_data_kobj : |
323 | out : |
324 | Return ret |
Name | Describe |
---|---|
boot_params_ksysfs_init |
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 |