Function report |
Source Code:lib\kobject.c |
Create Date:2022-07-28 06:16:17 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kobj_ns_type_register
Proto:int kobj_ns_type_register(const struct kobj_ns_type_operations *ops)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct kobj_ns_type_operations * | ops |
| 1019 | spin_lock( & kobj_ns_type_lock) |
| 1022 | If type >= KOBJ_NS_TYPES Then Go to out |
| 1026 | If type <= KOBJ_NS_TYPE_NONE Then Go to out |
| 1030 | If kobj_ns_ops_tbl[type] Then Go to out |
| 1033 | error = 0 |
| 1034 | kobj_ns_ops_tbl[type] = ops |
| 1036 | out : |
| 1037 | spin_unlock( & kobj_ns_type_lock) |
| 1038 | Return error |
| 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 |