Home
last modified time | relevance | path

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

/linux-3.4.99/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-3.4.99/drivers/mmc/card/
Dblock.c108 struct device_attribute force_ro; member
1679 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()
/linux-3.4.99/include/linux/mmc/
Dcard.h194 bool force_ro; /* to make boot parts RO by default */ member
286 card->part[card->nr_parts].force_ro = ro; in mmc_part_add()