xenomai网卡驱动分析之二 加载rtnet-ko后sys文件系统的信息

本文展示了在Xenomai实时内核环境下进行调试的过程。通过一系列命令行操作,详细介绍了如何查看实时网络设备'rtnet'的属性、权限及关联文件系统路径等信息。这对于理解实时内核中设备的管理和配置至关重要。
root@bogon:/usr/xenomai_debug/sbin# ls /dev/rtnet -l
crw------- 1 root root 10, 240 11月 16 22:25 /dev/rtnet
root@bogon:/usr/xenomai_debug/sbin# ls /sys/bus/
amba         clocksource  cpu   event_source  gpio     hid  iio       mipi-dsi  mmc_rpmb  nvmem  platform  rpmsg  sdio    serio  spi   sunxi-rsb  usb     workqueue  xen-backend
clockevents  container    edac  genpd         hdaudio  i2c  mdio_bus  mmc       node      pci    pnp       scsi   serial  soc    spmi  ulpi       virtio  xen
root@bogon:/usr/xenomai_debug/sbin# ls /sys/class/misc/
autofs  cpu_dma_latency  kvm  loop-control  memory_bandwidth  network_latency  network_throughput  pvr_sync  rtnet  snapshot  tun  vfio  vga_arbiter  watchdog
root@bogon:/usr/xenomai_debug/sbin# ls /sys/class/misc/rtnet
dev  power  subsystem  uevent
root@bogon:/usr/xenomai_debug/sbin# ls /sys/class/misc/rtnet -l
lrwxrwxrwx 1 root root 0 11月 16 22:39 /sys/class/misc/rtnet -> ../../devices/virtual/misc/rtnet
root@bogon:/usr/xenomai_debug/sbin# cat /sys/class/misc/rtnet/dev 
10:240
root@bogon:/usr/xenomai_debug/sbin# cat /sys/class/misc/rtnet/uevent 
MAJOR=10
MINOR=240
DEVNAME=rtnet
root@bogon:/usr/xenomai_debug/sbin# cat /sys/class/misc/rtnet/subsystem/
autofs/             kvm/                memory_bandwidth/   network_throughput/ rtnet/              tun/                vga_arbiter/        
cpu_dma_latency/    loop-control/       network_latency/    pvr_sync/           snapshot/           vfio/               watchdog/           
root@bogon:/usr/xenomai_debug/sbin# cat /sys/class/misc/rtnet/subsystem/
autofs/             kvm/                memory_bandwidth/   network_throughput/ rtnet/              tun/                vga_arbiter/        
cpu_dma_latency/    loop-control/       network_latency/    pvr_sync/           snapshot/           vfio/               watchdog/           

root@bogon:/usr/xenomai_debug/sbin# 
root@bogon:/usr/xenomai_debug/sbin# ls /sys/devices/
armv8_pmuv3  breakpoint  platform  software  system  tracepoint  uprobe  virtual
root@bogon:/usr/xenomai_debug/sbin# ls /sys/devices/system/
clockevents  clocksource  container  cpu  edac  node
root@bogon:/usr/xenomai_debug/sbin# ls /sys/
block/      bus/        class/      dev/        devices/    firmware/   fs/         hypervisor/ kernel/     module/     power/      
root@bogon:/usr/xenomai_debug/sbin# ls /sys/dev
block  char
root@bogon:/usr/xenomai_debug/sbin# ls /sys/dev/char/
10:130  10:58  116:0   13:64  1:5     150:15  150:22  150:3   150:9    204:64  2:13   236:2  2:5    3:0   3:2  4:0   4:16  4:23  4:30  4:38  4:45  4:52  4:6   4:67   511:0  7:132  7:64  89:1
10:196  10:59  116:16  13:65  150:0   150:16  150:23  150:30  1:7      204:65  2:14   238:0  250:0  3:1   3:3  4:1   4:17  4:24  4:31  4:39  4:46  4:53  4:60  4:7    5:2    7:133  7:65  90:0
10:200  10:60  116:17  13:66  150:1   150:17  150:24  150:31  1:8      204:66  2:15   2:4    254:0  3:10  3:4  4:10  4:18  4:25  4:32  4:4   4:47  4:54  4:61  4:8    7:0    7:134  7:66  90:1
10:231  10:61  116:24  13:67  150:10  150:18  150:25  150:4   189:0    204:67  2:2    243:0  254:1  3:11  3:5  4:11  4:19  4:26  4:33  4:40  4:48  4:55  4:62  4:9    7:1    7:2    7:67
10:232  10:62  116:26  13:68  150:11  150:19  150:26  150:5   189:1    2:1     2:3    244:0  2:6    3:12  3:6  4:12  4:2   4:27  4:34  4:41  4:49  4:56  4:63  5:0    7:128  7:3    7:68
10:235  10:63  116:33  13:69  150:12  150:2   150:27  150:6   189:128  2:10    234:0  244:1  2:7    3:13  3:7  4:13  4:20  4:28  4:35  4:42  4:5   4:57  4:64  509:0  7:129  7:4    7:69
10:237  1:1    1:3     13:70  150:13  150:20  150:28  150:7   1:9      2:11    236:0  245:0  2:8    3:14  3:8  4:14  4:21  4:29  4:36  4:43  4:50  4:58  4:65  5:1    7:130  7:5    7:70
10:240  1:11   13:63   1:4    150:14  150:21  150:29  150:8   2:0      2:12    236:1  245:1  2:9    3:15  3:9  4:15  4:22  4:3   4:37  4:44  4:51  4:59  4:66  510:0  7:131  7:6    89:0

root@bogon:/usr/xenomai_debug/sbin# ls /sys/dev/char/10:240/ -l
total 0
-r--r--r-- 1 root root 4096 11月 16 22:42 dev
drwxr-xr-x 2 root root    0 11月 16 22:42 power
lrwxrwxrwx 1 root root    0 11月 16 22:42 subsystem -> ../../../../class/misc
-rw-r--r-- 1 root root 4096 11月 16 22:42 uevent

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值