Function report |
Source Code:lib\kobject.c |
Create Date:2022-07-28 06:16:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kobject_rename() - Change the name of an object
Proto:int kobject_rename(struct kobject *kobj, const char *new_name)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kobject * | kobj | |
| const char * | new_name |
| 492 | error = 0 |
| 493 | const char * devpath = NULL |
| 495 | char * devpath_string = NULL |
| 501 | If Not parent Then |
| 503 | Return -EINVAL |
| 507 | If Not devpath Then |
| 512 | If Not devpath_string Then |
| 517 | envp[0] = devpath_string |
| 518 | envp[1] = NULL |
| 521 | If Not name Then |
| 539 | out : |
| 541 | kfree(devpath_string) |
| 545 | 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 |