Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\genhd.c Create Date:2022-07-28 17:19:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_disk_ro_uevent

Proto:static void set_disk_ro_uevent(struct gendisk *gd, int ro)

Type:void

Parameter:

TypeParameterName
struct gendisk *gd
intro
1566  event[] = "DISK_RO=1"
1567  char * envp[] = {event, NULL}
1569  If Not ro Then event[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
Caller
NameDescribe
set_disk_ro