[問題] 新產生的USB device node在哪裡?
我是在Galaxy Nexus下做個USB device driver
當裝置插上手機的時候,會在/sys/bus/usb/devices/下
生出1-1和1-1:1.0兩個node,且1-1:1.0下會有我註冊的
device attribute files(cat也沒問題)
但在/dev下卻沒有看到我所註冊的device name
static struct usb_class_driver usbcable_class = {
.name = "usbcable",
.fops = &usbcable_fops,
.minor_base = 192
};
retval = usb_register_dev(interface, &usbcable_class);
並沒有回傳錯誤訊息
請問這是什麼原因呢?還是說我看錯地方?
如果想要在driver中加入ioctl指令,請問我該打開哪個device node呢?
感謝!
--
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.251.198.202
推
04/02 20:04, , 1F
04/02 20:04, 1F
→
04/03 10:40, , 2F
04/03 10:40, 2F
→
04/03 10:41, , 3F
04/03 10:41, 3F
→
04/03 10:42, , 4F
04/03 10:42, 4F
→
04/03 10:43, , 5F
04/03 10:43, 5F
→
04/03 10:58, , 6F
04/03 10:58, 6F