kernel crashes when USB disconnected() is called in between usb_snd_msg()

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

kernel crashes when USB disconnected() is called in between usb_snd_msg()

678 次查看
lyfsci
Contributor III

Hi Experts,

I created a sample USB driver with character device access from user space.

I write a user space program to access the kernel driver write() function where I call usb_bulk_msg() to write in BULK OUT endpoint.

When I removed the USB in-between write transfer it crashes where the disconnect() is being invoked.

Regards,

Lyf

标签 (1)
0 项奖励
回复
1 回复

612 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Lyf,

    Sorry to say it is not within the scope of our support on how to write a USB driver !

    Suggest you had better refer to some books on linux driver.

Regards,

Weidong

0 项奖励
回复