函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\genhd.c Create Date:2022-07-27 18:54:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:set_disk_ro_uevent

函数原型:static void set_disk_ro_uevent(struct gendisk *gd, int ro)

返回类型:void

参数:

类型参数名称
struct gendisk *gd
intro
1566  event[]等于"DISK_RO=1"
1567  char * envp[] = {event, NULL}
1569  如果非roevent[8]等于'0'
1571  kobject_uevent_env - send an uevent with environmental data*@kobj: struct kobject that the action is happening to*@action: action that is happening*@envp_ext: pointer to environmental data* Returns 0 if kobject_uevent_env() is completed with success or the
调用者
名称描述
set_disk_ro