简体   繁体   中英

send uevent from fs/ext4 driver

looking fs/ext4/super.c, I see this function

static void ext4_handle_error(struct super_block *sb)

I need have a kobj if I want to send an uevent inside ext4_handle_error function using

int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, char *envp_ext[])

Question: is there a way to get *kobj from super_block *sb?

struct ext4_sb_info *sbi = EXT4_SB(sb); sbi->s_kobj; is this good?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM