Searched refs:force_ro (Results 1 – 4 of 4) sorted by relevance
23 echo 0 > /sys/block/mmcblkXbootY/force_ro27 echo 1 > /sys/block/mmcblkXbootY/force_ro
9 force_ro Enforce read-only access even if write protect switch is off.
108 struct device_attribute force_ro; member1679 card->part[idx].force_ro, in mmc_blk_alloc_parts()1697 device_remove_file(disk_to_dev(md->disk), &md->force_ro); in mmc_blk_remove_req()1733 md->force_ro.show = force_ro_show; in mmc_add_disk()1734 md->force_ro.store = force_ro_store; in mmc_add_disk()1735 sysfs_attr_init(&md->force_ro.attr); in mmc_add_disk()1736 md->force_ro.attr.name = "force_ro"; in mmc_add_disk()1737 md->force_ro.attr.mode = S_IRUGO | S_IWUSR; in mmc_add_disk()1738 ret = device_create_file(disk_to_dev(md->disk), &md->force_ro); in mmc_add_disk()1765 device_remove_file(disk_to_dev(md->disk), &md->force_ro); in mmc_add_disk()
194 bool force_ro; /* to make boot parts RO by default */ member286 card->part[card->nr_parts].force_ro = ro; in mmc_part_add()