Function report | 
Source Code:block\genhd.c | 
Create Date:2022-07-28 17:19:20 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:get_disk_and_module
Proto:struct kobject *get_disk_and_module(struct gendisk *disk)
Type:struct kobject
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct gendisk * | disk | 
| 1527 | If Not fops Then Return NULL | 
| 1530 | If owner && Not try_module_get(owner) Then Return NULL | 
| 1532 | kobj = kobject_get_unless_zero( & kobj) | 
| 1533 | If (kobj == NULL) Then | 
| 1534 | module_put(owner) | 
| 1535 | Return NULL | 
| 1537 | Return kobj | 
| Name | Describe | 
|---|---|
| exact_lock | |
| get_gendisk | get_gendisk - get partitioning information for a given device*@devt: device to get partitioning information for*@partno: returned partition index* This function gets the structure containing partitioning* information for the given device @devt. | 
| 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  |