Home
last modified time | relevance | path

Searched refs:force_ro (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/Documentation/mmc/
Dmmc-dev-parts.txt23 echo 0 > /sys/block/mmcblkXbootY/force_ro
27 echo 1 > /sys/block/mmcblkXbootY/force_ro
Dmmc-dev-attrs.txt9 force_ro Enforce read-only access even if write protect switch is off.
/Linux-v4.19/drivers/mmc/core/
Dblock.c130 struct device_attribute force_ro; member
2649 card->part[idx].force_ro, in mmc_blk_alloc_parts()
2672 device_remove_file(disk_to_dev(md->disk), &md->force_ro); in mmc_blk_remove_req()
2712 md->force_ro.show = force_ro_show; in mmc_add_disk()
2713 md->force_ro.store = force_ro_store; in mmc_add_disk()
2714 sysfs_attr_init(&md->force_ro.attr); in mmc_add_disk()
2715 md->force_ro.attr.name = "force_ro"; in mmc_add_disk()
2716 md->force_ro.attr.mode = S_IRUGO | S_IWUSR; in mmc_add_disk()
2717 ret = device_create_file(disk_to_dev(md->disk), &md->force_ro); in mmc_add_disk()
2744 device_remove_file(disk_to_dev(md->disk), &md->force_ro); in mmc_add_disk()
Dmmc.c309 card->part[card->nr_parts].force_ro = ro; in mmc_part_add()
/Linux-v4.19/include/linux/mmc/
Dcard.h233 bool force_ro; /* to make boot parts RO by default */ member