当前位置:   article > 正文

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

linux sd卡 csd

至少应该有/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

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号