Searched refs:force_ro (Results 1 – 5 of 5) 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.
130 struct device_attribute force_ro; member2649 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()
309 card->part[card->nr_parts].force_ro = ro; in mmc_part_add()
233 bool force_ro; /* to make boot parts RO by default */ member