linux mmc csd 位定义,sd卡的Linux设备节点mmcblk访问 CSD register

至少应该有/sys/block/diskX 目录中的一些CSD信息。

示例:我的sd卡与USB棒相连,被系统发现为/dev/sdc.ls -l/sys/block/sdc/queue/

total 0

-rw-r--r-- 1 root root 4096 Oct 7 22:25 add_random

-r--r--r-- 1 root root 4096 Oct 7 22:25 discard_granularity

-r--r--r-- 1 root root 4096 Oct 7 22:25 discard_max_bytes

-r--r--r-- 1 root root 4096 Oct 7 22:25 discard_zeroes_data

-r--r--r-- 1 root root 4096 Oct 7 22:25 hw_sector_size

drwxr-xr-x 2 root root 0 Oct 7 22:24 iosched

-rw-r--r-- 1 root root 4096 Oct 7 22:24 iostats

-r--r--r-- 1 root root 4096 Oct 7 22:25 logical_block_size

-r--r--r-- 1 root root 4096 Oct 7 22:24 max_hw_sectors_kb

-r--r--r-- 1 root root 4096 Oct 7 22:24 max_integrity_segments

-rw-r--r-- 1 root root 4096 Oct 7 22:24 max_sectors_kb

-r--r--r-- 1 root root 4096 Oct 7 22:24 max_segment_size

-r--r--r-- 1 root root 4096 Oct 7 22:24 max_segments

-r--r--r-- 1 root root 4096 Oct 7 22:24 minimum_io_size

-rw-r--r-- 1 root root 4096 Oct 7 22:25 nomerges

-rw-r--r-- 1 root root 4096 Oct 7 22:25 nr_requests

-r--r--r-- 1 root root 4096 Oct 7 22:25 optimal_io_size

-r--r--r-- 1 root root 4096 Oct 7 22:23 physical_block_size

-rw-r--r-- 1 root root 4096 Oct 7 22:25 read_ahead_kb

-rw-r--r-- 1 root root 4096 Oct 7 22:25 rotational

-rw-r--r-- 1 root root 4096 Oct 7 22:25 rq_affinity

-rw-r--r-- 1 root root 4096 Oct 7 22:25 scheduler

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值