| Function report | 
| Source Code: block\genhd.c | Create Date:2022-07-28 17:18:33 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:disk_ro_show
Proto:static ssize_t disk_ro_show(struct device *dev, struct device_attribute *attr, char *buf)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct device * | dev | |
| struct device_attribute * | attr | |
| char * | buf | 
| 1152 | disk = dev_to_disk(dev) | 
| 1154 | Return sprintf(buf, "%d\n", get_disk_ro(disk) ? 1 : 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 |