ftdi_open
==> ftdi_submit_read_urb
==> usb_fill_bulk_urb(urb, serial->dev,
usb_rcvbulkpipe(serial->dev,
port->bulk_in_endpointAddress),
urb->transfer_buffer,
urb->transfer_buffer_length,
ftdi_read_bulk_callback, port); // in到数据之后的回掉函数
result = usb_submit_urb(urb, mem_flags);
==> ftdi_read_bulk_callback
==> ftdi_process_read
==> ftdi_process_packet首先tty_insert_flip_string(tty, ch, len),然后tty_flip_buffer_push(tty)
阅读(1576) | 评论(0) | 转发(0) |