
device
at이 없을 때 net 인터페이스를 구현하는 모듈을 어떻게 찾나요 /sys/class/net/eth0
?
ls /sys/class/net/eth0/
addr_assign_type carrier iflink speed
addr_len dev_id link_mode statistics/
address dormant mtu subsystem@
brforward duplex netdev_group tx_queue_len
bridge/ flags operstate type
brif/ ifalias power/ uevent
broadcast ifindex queues/
dev_id
처음에는 유망해 보이지만 for dev_id
는 루프백 인터페이스 eth0
인 for와 동일합니다 .lo
내가 다루고 있는 "리눅스"는 충분히 현대적인 것 같지만(3.3.x 커널 포함) 이 특정 세부 사항은 내가 본 설명과 일치하지 않습니다. 설명은 분명히 유사하고 lspci
기타 편리하지만 거의 사용되지 않는 기능을 지원합니다. 유용.
나는 읽었다이 인기 있고 관련된 질문그러나 그 대답은 문제의 시스템에 없는 장치 심볼릭 링크에 의존합니다.