Linux lspcmcia:显示有关PCMCIA套接字和设备的信息
时间:2020-01-09 10:41:22 来源:igfitidea点击:
如何在Linux操作系统下查看有关PC卡(pcmcia)的信息?
您可以使用以下命令:
pccardctl
PCMCIA卡控制实用程序lspcmcia
显示扩展的PCMCIA调试信息
输入以下命令:
# pccardctl ls
或者
# lspcmcia
输出示例:
Socket 0 Bridge: [yenta_cardbus] (bus ID: 0000:03:01.0)
要查看插槽0的当前状态,请执行:
# pccardctl status 0
输出示例:
no card
要获取有关套接字0的更多信息:
# pccardctl info 0
语法如下:
pccardctl command socket
其中,命令可以是以下任意一项:
status Display the current socket status flags. config Display the socket configuration, including power settings, interrupt and I/O window settings, and configuration registers. --not yet implemented ident Display card identification information, including product identification strings, manufacturer ID codes, and function ID codes. Not yet implemented for cardbus cards. Use lspci instead. info Much like the ident command, but its output is formatted as a series of Bourne-stype shell variable definitions for use in scripts. Not yet implemented for cardbus cards. ls Display extended debugging information about the PCMCIA sockets and devices present in the system. suspend Shut down and then disable power for a socket. resume Restore power to a socket, and re-configure for use. eject Notify all client drivers that this card will be ejected, then cut power to the socket. insert Notify all client drivers that this card has just been inserted.